]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
Added ntpd config and upstart script.
authorChristian Schmidt <maniacikarus@ipfire.org>
Sat, 15 Aug 2009 12:28:00 +0000 (14:28 +0200)
committerChristian Schmidt <maniacikarus@ipfire.org>
Sat, 15 Aug 2009 12:28:00 +0000 (14:28 +0200)
lfs/ntp
src/initscripts/extras/ntpd.conf [new file with mode: 0644]

diff --git a/lfs/ntp b/lfs/ntp
index 60b699ab3cb8b8bf42e5bb464fc66cf5ab195534..f938f6fd5d1895aec9cb8170e884970454680be1 100644 (file)
--- 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 (file)
index 0000000..183f221
--- /dev/null
@@ -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