#!/sbin/runscript

depend() {
	need net
}

start() {
	ebegin "Starting Icecast 2"
	start-stop-daemon --background --start --make-pidfile --pidfile /var/run/icecast.pid --exec /usr/bin/icecast -- -c /etc/icecast2/icecast.xml
	eend $?
}

stop() {
	ebegin "Stopping Icecast 2"
	start-stop-daemon --stop --pidfile /var/run/icecast.pid --name icecast
	eend $?
}