summaryrefslogtreecommitdiffstats
path: root/testing/darkice/darkice.initd
diff options
context:
space:
mode:
Diffstat (limited to 'testing/darkice/darkice.initd')
-rwxr-xr-xtesting/darkice/darkice.initd20
1 files changed, 20 insertions, 0 deletions
diff --git a/testing/darkice/darkice.initd b/testing/darkice/darkice.initd
new file mode 100755
index 000000000..1c4777134
--- /dev/null
+++ b/testing/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 $?
+}