updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / synce-odccm / synce-odccm.rc
blob61e71a77d2d67b32c4433d9a944c6d1d54d9acca
1 #!/bin/bash
3 . /etc/rc.conf
4 . /etc/rc.d/functions
6 case "$1" in
7 start)
8 stat_busy "Starting SynCE odccm daemon"
9 /usr/sbin/odccm >/dev/null 2>/dev/null
10 if [ $? -gt 0 ]; then
11 stat_fail
12 else
13 add_daemon synce-odccm
14 stat_done
17 stop)
18 stat_busy "Stopping SynCE odccm daemon"
19 PID=`pidof odccm`
20 if [ -z $PID ]; then
21 stat_fail
22 else
23 kill $PID
24 rm_daemon synce-odccm
25 stat_done
28 restart)
29 $0 stop
30 sleep 1
31 $0 start
34 echo "usage: $0 {start|stop|restart}"
36 esac
37 exit 0