From 0d35a866ba12e66e504e1f575a04429c5d8cb9be Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Fri, 13 Jan 2023 22:07:34 +0100 Subject: ntp: T3008: migrate from ntpd to chrony * Move CLI from "system ntp" -> "service ntp" * Drop NTP server option preempt as not supported by chrony --- op-mode-definitions/date.xml.in | 22 ---------------------- op-mode-definitions/monitor-log.xml.in | 6 ++++++ op-mode-definitions/show-log.xml.in | 6 ++++++ op-mode-definitions/show-ntp.xml.in | 17 ++++------------- 4 files changed, 16 insertions(+), 35 deletions(-) (limited to 'op-mode-definitions') diff --git a/op-mode-definitions/date.xml.in b/op-mode-definitions/date.xml.in index 15a69dbd9..6d8586025 100644 --- a/op-mode-definitions/date.xml.in +++ b/op-mode-definitions/date.xml.in @@ -37,28 +37,6 @@ /bin/date "$3" - - - Set system date and time - - - - - Set system date and time from NTP server (default: 0.pool.ntp.org) - - /usr/sbin/ntpdate -u 0.pool.ntp.org - - - - Set system date and time from NTP server - - - - - /usr/sbin/ntpdate -u "$4" - - - diff --git a/op-mode-definitions/monitor-log.xml.in b/op-mode-definitions/monitor-log.xml.in index 95d5ecf96..d616bfc08 100644 --- a/op-mode-definitions/monitor-log.xml.in +++ b/op-mode-definitions/monitor-log.xml.in @@ -105,6 +105,12 @@ journalctl --no-hostname --boot --follow --unit opennhrp.service + + + Monitor last lines of Network Time Protocol (NTP) log + + journalctl --no-hostname --boot --follow --unit chrony.service + Monitor last lines of PPPoE log diff --git a/op-mode-definitions/show-log.xml.in b/op-mode-definitions/show-log.xml.in index 2984c467c..6608ea0d8 100644 --- a/op-mode-definitions/show-log.xml.in +++ b/op-mode-definitions/show-log.xml.in @@ -220,6 +220,12 @@ journalctl --no-hostname --boot --unit opennhrp.service + + + Show log for Network Time Protocol (NTP) + + journalctl --no-hostname --boot --unit chrony.service + Show log for MACsec diff --git a/op-mode-definitions/show-ntp.xml.in b/op-mode-definitions/show-ntp.xml.in index 01f4477d8..0907722af 100644 --- a/op-mode-definitions/show-ntp.xml.in +++ b/op-mode-definitions/show-ntp.xml.in @@ -6,22 +6,13 @@ Show peer status of NTP daemon - ${vyos_op_scripts_dir}/show_ntp.sh --basic + ${vyos_op_scripts_dir}/show_ntp.sh --sourcestats - + - Show date and time of specified NTP server - - - + Show parameters about the system clock performance - ${vyos_op_scripts_dir}/show_ntp.sh --server "$4" - - - - Show NTP operational summary - - ${vyos_op_scripts_dir}/show_ntp.sh --info + ${vyos_op_scripts_dir}/show_ntp.sh --tracking -- cgit v1.2.3