iscsi-target: Add package iscsi-target
[vuplus_openembedded] / packages / freesmartphone / python-ousaged / ousaged
1 #! /bin/sh
2 #
3 # odeviced  This shell script starts and stops the open device daemon.
4 #
5 # chkconfig: 345 90 20
6 # description: py-ousaged is the open usage daemon
7 # processname: python
8
9 PATH=/bin:/usr/bin:/sbin:/usr/sbin
10 NAME=odeviced
11
12 [ -f /etc/default/rcS ] && . /etc/default/rcS
13
14 case "$1" in
15     start)
16         echo -n "Starting open usage daemon: "
17         start-stop-daemon --start --pidfile /var/run/${NAME}.pid --make-pidfile --background -x /usr/bin/ousaged
18         if [ $? = 0 ]; then
19             echo "(ok)"
20         else
21             echo "(failed)"
22         fi
23         ;;
24     stop)
25         echo -n "Stopping open usage daemon: "
26         start-stop-daemon --stop --pidfile /var/run/${NAME}.pid --oknodo
27         rm -f /var/run/${NAME}.pid
28         echo "(done)"
29         ;;
30     restart|force-reload)
31         $0 stop
32         $0 start
33         ;;
34     *)
35         echo "Usage: /etc/init.d/ousaged {start|stop|restart|force-reload}"
36         exit 1
37         ;;
38 esac
39
40 exit 0