[chrony] add forced-command to chrony-helper (#735821)

Miroslav Lichvar mlichvar at fedoraproject.org
Tue Sep 6 15:20:36 UTC 2011


commit ff53331434dedf469724c89fd31c29a239491985
Author: Miroslav Lichvar <mlichvar at redhat.com>
Date:   Tue Sep 6 15:50:07 2011 +0200

    add forced-command to chrony-helper (#735821)

 chrony.helper |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/chrony.helper b/chrony.helper
index 34add5f..9158ae3 100644
--- a/chrony.helper
+++ b/chrony.helper
@@ -47,7 +47,7 @@ add_dhclient_servers() {
 }
 
 is_running() {
-    systemctl status chronyd.service &> /dev/null
+    systemctl status $service_name &> /dev/null
 }
 
 case "$1" in
@@ -60,8 +60,11 @@ case "$1" in
     command)
         is_running && chrony_command "$2"
         ;;
+    forced-command)
+        chrony_command "$2"
+        ;;
     *)
-        echo $"Usage: $0 {generate-commandkey|add-dhclient-servers|command}"
+        echo $"Usage: $0 {generate-commandkey|add-dhclient-servers|command|forced-command}"
         exit 2
 esac
 exit $?


More information about the scm-commits mailing list