#!/sbin/runscript # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ depend() { need net after icecast after jackd } start() { ebegin "Starting DarkIce" start-stop-daemon --background \ --user $DARKICE_USER \ --group $DARKICE_GROUP \ --make-pidfile \ --pidfile /var/run/darkice.pid \ --exec /usr/bin/darkice \ --stdout $DARKICE_LOGFILE \ --stderr $DARKICE_LOGFILE \ -- $DARKICE_OPTS eend $? } stop() { ebegin "Stopping DarkIce" start-stop-daemon --stop --pidfile /var/run/darkice.pid --name darkice eend $? }