python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / motion / S99motion
blob36bfc2388059dcffbea808d14a46b3f7063be660
1 #!/bin/sh
3 NAME=motion
4 PIDFILE=/var/run/$NAME.pid
5 DAEMON=/usr/bin/$NAME
7 start() {
8 printf "Starting $NAME: "
9 start-stop-daemon -S -q -m -b -p $PIDFILE --exec $DAEMON
10 [ $? = 0 ] && echo "OK" || echo "FAIL"
12 stop() {
13 printf "Stopping $NAME: "
14 start-stop-daemon -K -q -p $PIDFILE
15 [ $? = 0 ] && echo "OK" || echo "FAIL"
17 restart() {
18 stop
19 start
22 case "$1" in
23 start)
24 start
26 stop)
27 stop
29 restart|reload)
30 restart
33 echo "Usage: $0 {start|stop|restart|reload}"
34 exit 1
35 esac
37 exit $?