[chrony/f17] use systemctl is-active instead of status in chrony-helper (#794771)
Miroslav Lichvar
mlichvar at fedoraproject.org
Fri Apr 6 12:12:24 UTC 2012
commit adbad6f66926034036e3956374490a0dbf5c351b
Author: Miroslav Lichvar <mlichvar at redhat.com>
Date: Fri Apr 6 14:08:00 2012 +0200
use systemctl is-active instead of status in chrony-helper (#794771)
chrony.helper | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
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
More information about the scm-commits
mailing list