From adbad6f66926034036e3956374490a0dbf5c351b Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Fri, 6 Apr 2012 14:08:00 +0200 Subject: [PATCH] use systemctl is-active instead of status in chrony-helper (#794771) --- chrony.helper | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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