diff options
Diffstat (limited to 'testing/icecast/icecast.initd')
-rw-r--r-- | testing/icecast/icecast.initd | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/testing/icecast/icecast.initd b/testing/icecast/icecast.initd new file mode 100644 index 0000000000..b82e5cddf6 --- /dev/null +++ b/testing/icecast/icecast.initd @@ -0,0 +1,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 $? +} |