diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-10-13 14:24:02 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-10-13 18:01:17 -0700 |
commit | d47ecbf8e2c9fe355f5afca77a2dd71f5e65f87f (patch) | |
tree | f43fdbbc79155c6f4850a3c93eb1f6722df6e5c5 /templates/system | |
parent | 6714c5321e0a488284b39a9314bfa127573e0ebf (diff) | |
download | vyatta-cfg-system-d47ecbf8e2c9fe355f5afca77a2dd71f5e65f87f.tar.gz vyatta-cfg-system-d47ecbf8e2c9fe355f5afca77a2dd71f5e65f87f.zip |
Migrate NTP server to services ntp
Allows starting NTP server once at boot speeding up boot time
and allows specifying some NTP server options
Diffstat (limited to 'templates/system')
-rw-r--r-- | templates/system/ntp-server/node.def | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/templates/system/ntp-server/node.def b/templates/system/ntp-server/node.def deleted file mode 100644 index e1596161..00000000 --- a/templates/system/ntp-server/node.def +++ /dev/null @@ -1,18 +0,0 @@ -multi: -priority: 400 -type: txt -help: Network Time Protocol (NTP) server -create: if ! grep -q '^server $VAR(@) ' /etc/ntp.conf - then sudo sh -c \ - "echo \"server $VAR(@) iburst\" >> /etc/ntp.conf; \ - /usr/sbin/invoke-rc.d ntp restart" - elif ! /usr/sbin/invoke-rc.d ntp status - then sudo /usr/sbin/invoke-rc.d ntp start - fi -delete: if grep -q '^server $VAR(@) ' /etc/ntp.conf - then sudo sed -i '/^server $VAR(@) /d' /etc/ntp.conf - if grep -q '^server ' /etc/ntp.conf - then sudo /usr/sbin/invoke-rc.d ntp restart - else sudo /usr/sbin/invoke-rc.d ntp stop - fi - fi |