diff options
Diffstat (limited to 'main/darkice/darkice.initd')
-rwxr-xr-x | main/darkice/darkice.initd | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/main/darkice/darkice.initd b/main/darkice/darkice.initd new file mode 100755 index 000000000..1c4777134 --- /dev/null +++ b/main/darkice/darkice.initd @@ -0,0 +1,20 @@ +#!/sbin/runscript + +depend() { + need net icecast + after firewall +} + +start() { + ebegin "Starting DarkIce" + start-stop-daemon --start --quiet --background \ + --exec ${DARKICE_BIN} -- ${DARKICE_OPTS} + eend $? +} + + +stop() { + ebegin "Stopping DarkIce" + start-stop-daemon --stop --exec $DARKICE_BIN + eend $? +} |