use systemctl is-active instead of status in chrony-helper (#794771)

This commit is contained in:
Miroslav Lichvar 2012-04-06 14:08:00 +02:00
parent 29a2bd7a4a
commit adbad6f669

View File

@ -83,7 +83,7 @@ remove_dhclient_servers() {
} }
is_running() { is_running() {
systemctl status $service_name &> /dev/null systemctl is-active -q $service_name
} }
case "$1" in case "$1" in