Snail/etc/init.d/snail-watcher

29 lines
636 B
Plaintext
Executable File

#!/sbin/runscript
PATH=$PATH:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
DAEMON="snail-watcher.sh"
DAEMON_ARGS=""
PIDFILE=/var/run/snail-watcher.pid
depend() {
need localmount
}
start() {
ebegin "Starting ${SVCNAME}"
start-stop-daemon --make-pidfile \
--background \
--start \
--pidfile $PIDFILE \
--exec $DAEMON \
-- $DAEMON_ARGS
eend $?
}
stop() {
ebegin "Stopping ${SVCNAME}"
start-stop-daemon --stop \
--pidfile $PIDFILE
eend $?
}