updated on Thu Jan 12 16:09:17 UTC 2012
[aur-mirror.git] / pbmpcd / pbmpcd.rc
blob6167292533cca0069a92ee176f7d8af7696ba258
1 #!/bin/bash
3 . /etc/rc.conf
4 . /etc/rc.d/functions
6 case "$1" in
7 start)
8 stat_busy "Starting PBMPCD"
9 start-stop-daemon -S -c mpd -m -p /var/run/pbmpcd.pid -b -x /usr/bin/pbmpcd -- -b
10 if [ $? -gt 0 ]; then
11 stat_fail
12 else
13 add_daemon pbmpcd
14 stat_done
17 stop)
18 stat_busy "Stopping PBMPCD"
19 start-stop-daemon -K -c mpd -m -p /var/run/pbmpcd.pid
20 if [ $? -gt 0 ]; then
21 stat_fail
22 else
23 rm_daemon pbmpcd
24 stat_done
27 restart)
28 $0 stop
29 sleep 1
30 $0 start
33 echo "usage: $0 {start|stop|restart}"
34 esac
35 exit 0