#!/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 CouchPotato" start-stop-daemon --start --user "${CP_USER}:${CP_GROUP}" --pidfile "${CP_PID}" -d "${CP_PATH}" --exec python "${CP_PY}" -- ${CP_OPTS} eend $? } stop() { ebegin "Stopping CouchPotato" start-stop-daemon --stop --retry 30 --pidfile ${CP_PID} eend $? }