use systemctl is-active instead of status in chrony-helper (#794771)
This commit is contained in:
parent
29a2bd7a4a
commit
adbad6f669
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user