summaryrefslogtreecommitdiffstats
path: root/openwrt/package/peercast/files/peercast.init
diff options
context:
space:
mode:
authornico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-12-14 22:34:56 +0000
committernico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-12-14 22:34:56 +0000
commit9bc942e4071d2040bd26f54783fadfc8394d1f55 (patch)
tree3b02357b3223de93791cbb916e67aea038e1bdc6 /openwrt/package/peercast/files/peercast.init
parent060e86ed020c464871e85cdcb14b4b561130022f (diff)
add peercast package (thanks to Romain Beauxis)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@2672 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package/peercast/files/peercast.init')
-rw-r--r--openwrt/package/peercast/files/peercast.init18
1 files changed, 18 insertions, 0 deletions
diff --git a/openwrt/package/peercast/files/peercast.init b/openwrt/package/peercast/files/peercast.init
new file mode 100644
index 000000000..c61c31438
--- /dev/null
+++ b/openwrt/package/peercast/files/peercast.init
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+PID_F=/var/run/peercast.pid
+
+case $1 in
+ start)
+ peercast -d -i /etc/peercast.ini -l /var/log/peercast.log -p $PID_F
+ ;;
+ stop)
+ [ -f $PID_F ] && kill $(cat $PID_F) >/dev/null 2>&1
+ ;;
+ *)
+ echo "usage: $0 (start|stop)"
+ exit 1
+esac
+
+exit $?
+