]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/chillispot/files/init
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / chillispot / files / init
1 PATH=/sbin:/bin:/usr/sbin:/usr/bin
2 DAEMON=/usr/sbin/chilli
3 NAME=chilli
4 DESC=chillispot
5
6 test -f $DAEMON || exit 0
7
8 set -e
9
10 case "$1" in
11   start)
12         echo -n "Starting $DESC: "
13         start-stop-daemon -S -p /var/run/$NAME.pid -x $DAEMON
14         echo "$NAME."
15         ;;
16   stop)
17         echo -n "Stopping $DESC: "
18         start-stop-daemon -K -p /var/run/$NAME.pid -x $DAEMON
19         echo "$NAME."
20         ;;
21   restart|force-reload)
22         echo -n "Restarting $DESC: "
23         start-stop-daemon -K -p /var/run/$NAME.pid -x $DAEMON
24         sleep 1
25         start-stop-daemon -S -p /var/run/$NAME.pid -x $DAEMON
26         echo "$NAME."
27         ;;
28   *)
29         N=/etc/init.d/$NAME
30         echo "Usage: $N {start|stop|restart|force-reload}" >&2
31         exit 1
32         ;;
33 esac
34
35 exit 0