5 # Required-Start: $remote_fs dbus
6 # Required-Stop: $remote_fs dbus
7 # Default-Start: 2 3 4 5
9 # Short-Description: Starts the fso gspd compatibility daemon
12 PATH
=/usr
/local
/sbin
:/usr
/local
/bin
:/sbin
:/bin
:/usr
/sbin
:/usr
/bin
15 DESC
="the fso gpsd compatibility daemon"
18 PIDFILE
=$PIDDIR/$NAME.pid
20 DAEMON
=/usr
/sbin
/fso-gpsd
21 DAEMON_OPTS
="-P $PIDFILE"
24 if id
-u fso-gpsd
> /dev
/null
2>&1; then
28 test -x $DAEMON ||
exit 0
34 echo -n "Starting $DESC: "
35 if [ ! -d $PIDDIR ]; then
37 chown
$DAEMON_USER:$DAEMON_USER $PIDDIR
39 start-stop-daemon
--start --quiet --pidfile $PIDFILE \
40 --chuid $DAEMON_USER --exec $DAEMON -- $DAEMON_OPTS
45 echo -n "Stopping $DESC: "
46 start-stop-daemon
--oknodo --stop --quiet --pidfile $PIDFILE
55 echo "Usage: $0 {start|stop|restart|force-reload}"