commit | 034fc5038d88dc64078609922687ec5e2ea1c26e | [log] [tgz] |
---|---|---|
author | Petr Vorel <pvorel@suse.cz> | Thu Mar 09 14:34:10 2017 +0100 |
committer | Cyril Hrubis <chrubis@suse.cz> | Thu Mar 09 17:13:27 2017 +0100 |
tree | d5b17897b75f20c4f493975408bfe910e3e1b61c | |
parent | 0b19010bfb89ee5465466718dbadbc1775b89329 [diff] |
daemonlib: Use is-active instead of status for systemctl 'systemctl status service' exit code is broken in old distros. It returns 0 even if service is not running. As we use status_daemon for detecting whether service is running, it's more reliable to use is-active. systemctl bug was introduced in systemd v209 (f74294c1d), fixed in v213 (5bb75bc74). Signed-off-by: Petr Vorel <pvorel@suse.cz>