#!/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 Headphones" start-stop-daemon --start --user "${HP_USER}:${HP_GROUP}" --pidfile "${HP_PID}" -d "${HP_PATH}" --exec python "${HP_PY}" -- ${HP_OPTS} eend $? } stop() { ebegin "Stopping Headphones" start-stop-daemon --stop --retry 30 --pidfile ${HP_PID} eend $? }