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
="fso gpsd compatibility daemon"
18 PIDFILE
=$PIDDIR/$NAME.pid
20 DAEMON
=/usr
/sbin
/fso-gpsd
21 DAEMON_OPTS
="-P $PIDFILE -S localhost:gpsd"
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
44 echo -n "Stopping $DESC: "
45 start-stop-daemon
--oknodo --stop --quiet --pidfile $PIDFILE
54 echo "Usage: $0 {start|stop|restart|force-reload}"