#!/sbin/runscript # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header$ depend() { need net use sabnzbd } start() { ebegin "Starting Sick-Beard" start-stop-daemon --start --user "${SB_USER}:${SB_GROUP}" --pidfile "${SB_PID}" -d "${SB_PATH}" --exec python "${SB_PY}" -- ${SB_OPTS} eend $? } stop() { ebegin "Stopping Sick-Beard" start-stop-daemon --stop --retry 30 --pidfile ${SB_PID} eend $? }