]> git.ipfire.org Git - thirdparty/systemd.git/commit
systemctl: don't suppress error code when handling legacy commands
authorLennart Poettering <lennart@poettering.net>
Mon, 6 Jun 2016 19:45:12 +0000 (21:45 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 10 Jun 2016 18:02:16 +0000 (20:02 +0200)
commit033f0ab85d9cc5e8ae66e07d4740482abb5617ef
tree473dad6b53745ea93fc2f06b2cb9c8d66771fa82
parent64c3610b55799c738e4fdc7236fadd635649c0f4
systemctl: don't suppress error code when handling legacy commands

For legacy commands such as /sbin/halt or /sbin/poweroff we support legacy
fallbacks that talk via traditional SysV way with PID 1 to issue the desired
operation. We do this on any kind of error if the primary method of operation
fails. When this is the case we suppress any error message that is normally
generated, in order to not confuse the user. When suppressing this log message,
don't suppress the original error code, because there's really no reason to.
src/systemctl/systemctl.c