diff options
Diffstat (limited to 'extra/sntpc/sntpc.initd')
-rw-r--r-- | extra/sntpc/sntpc.initd | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/extra/sntpc/sntpc.initd b/extra/sntpc/sntpc.initd deleted file mode 100644 index a97e51bdbd..0000000000 --- a/extra/sntpc/sntpc.initd +++ /dev/null @@ -1,30 +0,0 @@ -#!/sbin/runscript - -NAME=sntpc -DAEMON=/usr/sbin/$NAME - -depend() { - need net -} - -start() { - local msg opts - if [ "$SNTPC_INTERVAL" = "0" ]; then - msg="Setting time from NTP source" - else - msg="Starting ${NAME}" - opts="-d" - fi - ebegin "$msg" - start-stop-daemon --start --quiet --name sntpc \ - --exec ${DAEMON} -- \ - -i ${SNTPC_INTERVAL} $opts ${SNTPC_HOST} - eend $? -} - -stop() { - ebegin "Stopping ${NAME}" - start-stop-daemon --stop --quiet \ - --exec ${DAEMON} - eend $? -} |