From: Christian Schmidt Date: Sat, 15 Aug 2009 12:28:00 +0000 (+0200) Subject: Added ntpd config and upstart script. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6749d6952e5307bc8c59bcbb5e79e319a6d65f7;p=ipfire-3.x.git Added ntpd config and upstart script. --- diff --git a/lfs/ntp b/lfs/ntp index 60b699ab3..f938f6fd5 100644 --- a/lfs/ntp +++ b/lfs/ntp @@ -90,5 +90,9 @@ $(OBJECT): $(objects) --with-binsubdir=sbin cd $(DIR_APP) && make $(PARALLELISMFLAGS) cd $(DIR_APP) && make install + echo "restrict default nomodify noquery" > /etc/ntp.conf + echo "restrict 127.0.0.1" >> /etc.ntp.conf + echo "server de.pool.ntp.org" >> /etc/ntp.conf + echo "driftfile /etc/ntp/drift" >> /etc/ntp.conf @rm -rf $(DIR_APP) @$(POSTBUILD) diff --git a/src/initscripts/extras/ntpd.conf b/src/initscripts/extras/ntpd.conf new file mode 100644 index 000000000..183f22180 --- /dev/null +++ b/src/initscripts/extras/ntpd.conf @@ -0,0 +1,8 @@ +description "Start system time daemon" +author "IPFire Team" + +start on stopped mountfs +stop on shutdown + +exec /usr/sbin/ntpd -4 -c /etc/ntp.conf +respawn