aports/testing/icecast/icecast.initd
Natanael Copa 913500f30a testing/icecast: run as icecast by default
also fix localstatedir
2010-02-23 12:52:50 +00:00

21 lines
323 B
Plaintext

#!/sbin/runscript
depend() {
need net
after firewall
}
start() {
ebegin "Starting Icecast 2"
start-stop-daemon --start --exec /usr/bin/icecast \
-- \
-b -c ${icecast_conf:-/etc/icecast.xml} > /dev/null
eend $?
}
stop() {
ebegin "Stopping Icecast 2"
start-stop-daemon --stop --exec /usr/bin/icecast
eend $?
}