summaryrefslogtreecommitdiffstats
path: root/testing/icecast/icecast.initd
blob: b82e5cddf6e3811e99eb4b8c622909e16ae48ce3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/sbin/runscript

depend() {
	need net
	after firewall
}

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

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