diff options
Diffstat (limited to 'src.etc')
-rw-r--r-- | src.etc/init.d/ntpd | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src.etc/init.d/ntpd b/src.etc/init.d/ntpd new file mode 100644 index 0000000..3f8086f --- /dev/null +++ b/src.etc/init.d/ntpd @@ -0,0 +1,20 @@ +#!/bin/sh /etc/rc.common + +START='25' +STOP='75' + +start() +{ + log 'Starting ntpd' + start-stop-daemon -S -q -x /sbin/ntpd -- \ + -p 0.pool.ntp.org \ + -p 1.pool.ntp.org \ + -p 2.pool.ntp.org \ + -p 3.pool.ntp.org +} + +stop() +{ + log 'Stopping ntpd' + start-stop-daemon -K -q -p /var/run/ntpd.pid +} |