diff --git a/chrony.helper b/chrony.helper index 4df55ed..af091fe 100644 --- a/chrony.helper +++ b/chrony.helper @@ -83,7 +83,7 @@ remove_dhclient_servers() { } is_running() { - systemctl status $service_name &> /dev/null + systemctl is-active -q $service_name } case "$1" in