]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/ccxstream/ccxstream-1.0.15/ccxstream.init
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / ccxstream / ccxstream-1.0.15 / ccxstream.init
1 #! /bin/sh
2
3 start() {
4         . /etc/ccxstream.conf
5         if [ "${CHECK}" = "YES" ] ; then
6
7             echo -n "Starting ccXstream : "
8             start-stop-daemon --start --quiet --exec ${BIN} \
9             -- ${PARAMS} -C ${SERVERCOMMENT}
10             status="$?"
11             test ${status} = "0" && echo OK || echo FAILED
12             return ${status}
13         else
14             echo "Please setup /etc/ccxstream.conf before starting ccXstream"
15             return 1
16         fi
17 }
18
19 stop() {
20         echo -n "Stopping ccXstream : "
21         start-stop-daemon --stop --quiet --pidfile /var/run/ccxstream.pid
22         return $?
23 }
24
25 case $1 in
26         start)
27                 start
28         ;;
29         stop)
30                 stop
31         ;;
32         restart)
33                 stop
34                 start
35         ;;
36 esac
37