#!/sbin/runscript

depend() {
    need net
    use logger
}

start() {
    ebegin "Starting rbulk-watchd"
    start-stop-daemon --start --quiet --background		\
        --exec /local/robotpkg/sbin/rbulk-watchd --		\
        	-l rbulk -g robots				\
        	-c /opt/robotpkg/etc/rbulk-watchd-guest.conf
    eend $?
}

stop() {
    ebegin "Stopping rbulk-watchd"
    start-stop-daemon --stop --quiet \
	/local/robotpkg/sbin/sbin/rbulk-watchd
    eend $?
}
