From 801cd758757348f55e0768f36b2fb18bd022f2ca Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Sat, 13 Jul 2024 21:18:31 +0200 Subject: op-mode: T6575: add support for NTP service restart via CLI This seemed to be arround in the early days, but is not available since at least VyOS 1.3.3. Add CLI helper to restart the NTP process (chrony). (cherry picked from commit ca4f4343999bdbd8450ef952f42062877d6f3bab) --- op-mode-definitions/restart-ntp.xml.in | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 op-mode-definitions/restart-ntp.xml.in diff --git a/op-mode-definitions/restart-ntp.xml.in b/op-mode-definitions/restart-ntp.xml.in new file mode 100644 index 000000000..961fae252 --- /dev/null +++ b/op-mode-definitions/restart-ntp.xml.in @@ -0,0 +1,13 @@ + + + + + + + Restart NTP service + + if cli-shell-api existsActive service ntp; then sudo systemctl restart chrony.service; else echo "Service NTP not configured"; fi + + + + -- cgit v1.2.3