gpsdate.init: Make the killing of gpsdate work on the target
When the initscript is called gpsdate it might kill itself before it has a way to start the new gpsdate process. Use pidof with the full path to the gpsdate binary to avoid this.
This commit is contained in:
parent
f07a52709f
commit
0db898e4b8
|
@ -52,7 +52,7 @@ case "$1" in
|
||||||
stop)
|
stop)
|
||||||
# This should use start-stop-daemon and create a pid file
|
# This should use start-stop-daemon and create a pid file
|
||||||
echo "Stopping gpsdate in a brutal way"
|
echo "Stopping gpsdate in a brutal way"
|
||||||
killall -9 gpsdate
|
kill -9 `pidof $DAEMON`
|
||||||
;;
|
;;
|
||||||
|
|
||||||
restart)
|
restart)
|
||||||
|
|
Loading…
Reference in New Issue