Port peercast to -ng
[openwrt/svn-archive/archive.git] / multimedia / peercast / files / peercast.init
1 #!/bin/sh
2
3 PID_F=/var/run/peercast.pid
4
5 case $1 in
6 start)
7 peercast -d -i /etc/peercast.ini -l /var/log/peercast.log -p $PID_F
8 ;;
9 stop)
10 [ -f $PID_F ] && kill $(cat $PID_F) >/dev/null 2>&1
11 ;;
12 *)
13 echo "usage: $0 (start|stop)"
14 exit 1
15 esac
16
17 exit $?
18