add forced-command to chrony-helper (#735821)
This commit is contained in:
parent
f0a19e7b77
commit
ff53331434
@ -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 $?
|
||||
|
Loading…
Reference in New Issue
Block a user