Bug 60393

Summary: systemctl kexec still prints wall message on failure
Product: systemd Reporter: Zbigniew Jedrzejewski-Szmek <zbyszek>
Component: generalAssignee: systemd-bugs
Status: RESOLVED FIXED QA Contact: systemd-bugs
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Zbigniew Jedrzejewski-Szmek 2013-02-07 04:39:49 UTC
$ systemctl kexec
Failed to issue method call: Access denied

Broadcast message from zbyszek@fedora-15 on pts/1 (Thu 2013-02-07 05:35:59 CET):

The system is going down for kexec reboot NOW!

$ journalctl
Feb 07 05:35:59 fedora-15 systemd[1]: Got D-Bus request: org.freedesktop.DBus.NameOwnerChanged() on /org/freedesktop/DBus
Feb 07 05:35:59 fedora-15 dbus-daemon[413]: dbus[413]: [system] Rejected send message, 2 matched rules; type="method_call", sender=":1.1245" (uid=500 pid=28325 comm="systemctl kexec ") interface="org.freedesktop.systemd1.Manager" member="StartUnit" error name="(unset)" requested_reply="0" destination="org.freedesktop.systemd1" (uid=0 pid=1 comm="/usr/lib/systemd/systemd --system --deserialize 24")
Feb 07 05:35:59 fedora-15 dbus[413]: [system] Rejected send message, 2 matched rules; type="method_call", sender=":1.1245" (uid=500 pid=28325 comm="systemctl kexec ") interface="org.freedesktop.systemd1.Manager" member="StartUnit" error name="(unset)" requested_reply="0" destination="org.freedesktop.systemd1" (uid=0 pid=1 comm="/usr/lib/systemd/systemd --system --deserialize 24")
Feb 07 05:35:59 fedora-15 systemd[1]: Got D-Bus request: org.freedesktop.DBus.NameOwnerChanged() on /org/freedesktop/DBus
Comment 1 Zbigniew Jedrzejewski-Szmek 2013-02-14 22:01:29 UTC
Turns out to be simple positive/negative error code mismatch.

http://cgit.freedesktop.org/systemd/systemd/commit/?id=f6bb13a

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.