From d47ecbf8e2c9fe355f5afca77a2dd71f5e65f87f Mon Sep 17 00:00:00 2001
From: Stephen Hemminger <stephen.hemminger@vyatta.com>
Date: Wed, 13 Oct 2010 14:24:02 -0700
Subject: Migrate NTP server to services ntp

Allows starting NTP server once at boot speeding up boot time
and allows specifying some NTP server options
---
 templates/system/ntp-server/node.def | 18 ------------------
 1 file changed, 18 deletions(-)
 delete mode 100644 templates/system/ntp-server/node.def

(limited to 'templates/system/ntp-server/node.def')

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
-- 
cgit v1.2.3

