#!/sbin/runscript
# description: autoscan-network-daemon
# gentoo install  ( # rc-update add autoscan-network default)

PIDFILE="/var/run/autoscan.pid"

depend() {
        use net
        after logger
}

start() {
        ebegin "Starting autoscan-network-daemon ..."
	start-stop-daemon --start --quiet --pidfile ${PIDFILE} \
		--exec /usr/sbin/autoscan-network-daemon
	eend $?
}

stop() {
        ebegin "Stopping autoscan-network-daemon ..."
	start-stop-daemon --stop --quiet --pidfile $PIDFILE \
			--exec /usr/sbin/autoscan-network-daemon -- stop
	eend $?
}
