diff options
author | Tom Grennan <tgrennan@io.vyatta.com> | 2007-11-29 14:59:23 -0800 |
---|---|---|
committer | Tom Grennan <tgrennan@io.vyatta.com> | 2007-11-29 14:59:23 -0800 |
commit | a9700af4fd0c2a033c9f32ae96ec0565931e563b (patch) | |
tree | c7209529a64a3a4f3cb4dbcab81bdd44d2add105 /templates | |
parent | bc0323ce21ba5a1b85fb78bc4cd50018bff4415b (diff) | |
download | vyatta-op-a9700af4fd0c2a033c9f32ae96ec0565931e563b.tar.gz vyatta-op-a9700af4fd0c2a033c9f32ae96ec0565931e563b.zip |
fix bug 2513 by having "show ntp" return peer status of NTP daemon rather
"ntpdate -q ntp.vyatta.com"
Diffstat (limited to 'templates')
-rw-r--r-- | templates/show/ntp/node.def | 8 |
1 files changed, 6 insertions, 2 deletions
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 |