summaryrefslogtreecommitdiff
path: root/templates/system/ntp/node.def
blob: 38e67e059ce7e5f7c1a0f1c12e42edc1b5e8dad0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
priority: 400
help: Network Time Protocol (NTP) configuration

end: 
     sudo /opt/vyatta/sbin/vyatta_update_ntp.pl
     if grep -q '^server' /etc/ntp.conf
     then 
	 if pgrep -f -u ntp /usr/sbin/ntpd > /dev/null
	 then
	     sudo /usr/sbin/invoke-rc.d ntp force-reload
         else
	     sudo /usr/sbin/invoke-rc.d ntp start
	 fi
     else
	 sudo /usr/sbin/invoke-rc.d ntp stop
     fi