From a9700af4fd0c2a033c9f32ae96ec0565931e563b Mon Sep 17 00:00:00 2001 From: Tom Grennan Date: Thu, 29 Nov 2007 14:59:23 -0800 Subject: fix bug 2513 by having "show ntp" return peer status of NTP daemon rather "ntpdate -q ntp.vyatta.com" --- templates/show/ntp/node.def | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'templates') diff --git a/templates/show/ntp/node.def b/templates/show/ntp/node.def index 0d7abae..539f220 100644 --- a/templates/show/ntp/node.def +++ b/templates/show/ntp/node.def @@ -1,2 +1,6 @@ -help: Show date and time of network server -run: /usr/sbin/ntpdate -q ntp.vyatta.com +help: Show peer status of network time daemon +run: if ps -C &>/dev/null ; then + ntpdc -n -c peers + else + echo NTP daemon disabled + fi -- cgit v1.2.3