Snail/etc/init.d/snail-watcher

27 lines
495 B
Plaintext
Raw Normal View History

2012-03-20 16:46:24 +04:00
#!/sbin/runscript
DAEMON="/usr/local/sbin/snail.watcher"
DAEMON_ARGS=""
PIDFILE=/var/run/snail.pid
PATH=$PATH:/usr/local/bin
depend() {
need localmount
}
start() {
ebegin "Starting ${SVCNAME}"
start-stop-daemon -m -b --start --exec $DAEMON \
--pidfile $PIDFILE \
-- $DAEMON_ARGS
eend $?
}
stop() {
ebegin "Stopping ${SVCNAME}"
start-stop-daemon --stop --exec $DAEMON \
--pidfile $PIDFILE
eend $?
}