update base pkgs..
[vuplus_openvuplus_3.0] / meta-openvuplus / recipes-base / vuplus-vucamd / vuplus-vucamd / vucamd.sh
1 #!/bin/sh
2
3 usage()
4 {
5         echo "usage: $0 {start|stop|status|restart|reload}"
6 }
7
8 if [ $# -lt 1 ] ; then usage ; break ; fi
9 action=$1
10
11 case "$action" in
12
13 start)
14         echo -n "Start daemon:"
15         /usr/bin/vucamd &
16                 ;;
17
18 stop)
19         echo -n "Stopping daemon"
20         killall vucamd
21         echo "."
22         ;;
23
24 status)
25         ;;
26
27 restart|reload)
28         $0 stop
29         $0 start
30         ;;
31
32 *)
33         usage
34         ;;
35
36 esac
37
38 exit 0