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

This commit is contained in:
Miroslav Lichvar 2011-09-06 15:50:07 +02:00
parent f0a19e7b77
commit ff53331434

View File

@ -47,7 +47,7 @@ add_dhclient_servers() {
} }
is_running() { is_running() {
systemctl status chronyd.service &> /dev/null systemctl status $service_name &> /dev/null
} }
case "$1" in case "$1" in
@ -60,8 +60,11 @@ case "$1" in
command) command)
is_running && chrony_command "$2" 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 exit 2
esac esac
exit $? exit $?