2006-10-04 21:04:48 +00:00
|
|
|
#!/bin/sh /etc/rc.common
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
2007-05-10 10:38:53 +00:00
|
|
|
START=50
|
2006-08-06 14:50:20 +00:00
|
|
|
|
|
|
|
PID_F=/var/run/peercast.pid
|
|
|
|
|
2006-10-04 21:04:48 +00:00
|
|
|
start() {
|
|
|
|
peercast -d -i /etc/peercast.ini -l /var/log/peercast.log -p $PID_F
|
|
|
|
}
|
2006-08-06 14:50:20 +00:00
|
|
|
|
2006-10-04 21:04:48 +00:00
|
|
|
stop() {
|
|
|
|
[ -f $PID_F ] && kill $(cat $PID_F) >/dev/null 2>&1
|
|
|
|
}
|
2006-08-06 14:50:20 +00:00
|
|
|
|