libasplib: add url to gcc bug report
[buildroot-gz.git] / package / gpsd / S50gpsd
blob39bf2320614b3b986b4fa12eb1591d4dee2fb9a8
1 #!/bin/sh
3 # Starts the gps daemon.
6 NAME=gpsd
7 DAEMON=/usr/sbin/$NAME
8 DEVICES=/dev/ttyS1
9 PIDFILE=/var/run/$NAME.pid
11 start() {
12 printf "Starting $NAME: "
13 start-stop-daemon -S -q -p $PIDFILE --exec $DAEMON -- -P $PIDFILE $DEVICES && echo "OK" || echo "Failed"
15 stop() {
16 printf "Stopping $NAME: "
17 start-stop-daemon -K -q -p $PIDFILE && echo "OK" || echo "Failed"
18 rm -f $PIDFILE
20 restart() {
21 stop
22 start
25 case "$1" in
26 start)
27 start
29 stop)
30 stop
32 restart|reload)
33 restart
36 echo "Usage: $0 {start|stop|restart}"
37 exit 1
38 esac
40 exit $?