summaryrefslogtreecommitdiffstats
path: root/extra/sntpc/sntpc.initd
diff options
context:
space:
mode:
Diffstat (limited to 'extra/sntpc/sntpc.initd')
-rw-r--r--extra/sntpc/sntpc.initd30
1 files changed, 0 insertions, 30 deletions
diff --git a/extra/sntpc/sntpc.initd b/extra/sntpc/sntpc.initd
deleted file mode 100644
index a97e51bdb..000000000
--- 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 $?
-}