3 # odeviced This shell script starts and stops the open device daemon.
6 # description: py-ousaged is the open usage daemon
9 PATH=/bin:/usr/bin:/sbin:/usr/sbin
12 [ -f /etc/default/rcS ] && . /etc/default/rcS
16 echo -n "Starting open usage daemon: "
17 start-stop-daemon --start --pidfile /var/run/${NAME}.pid --make-pidfile --background -x /usr/bin/ousaged
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
35 echo "Usage: /etc/init.d/ousaged {start|stop|restart|force-reload}"