3 # Starts the gps daemon.
9 PIDFILE
=/var
/run
/$NAME.pid
12 printf "Starting $NAME: "
13 start-stop-daemon
-S -q -p $PIDFILE --exec $DAEMON -- -P $PIDFILE $DEVICES && echo "OK" ||
echo "Failed"
16 printf "Stopping $NAME: "
17 start-stop-daemon
-K -q -p $PIDFILE && echo "OK" ||
echo "Failed"
36 echo "Usage: $0 {start|stop|restart}"