Fix camcount to work with caffeine proxitude
[7seg/.git] / camcountd
1 #!/bin/bash
2
3 PIDFILE=/opt/camcount/camcount.pid
4 DAEMON=/opt/camcount/camcount
5
6 case "$1" in
7         start)
8                 start-stop-daemon -S -mp $PIDFILE -x $DAEMON -b
9                 ;;
10         stop)
11                 start-stop-daemon -K -p $PIDFILE -x $DAEMON
12                 ;;
13         restart)
14                 "$0" stop
15                 "$0" start
16                 ;;
17         *)
18                 echo "Usage: $0 (start|stop|restart)"
19                 ;;
20 esac