diff --git a/gpsdate.init b/gpsdate.init index 7810af6..bfd40f4 100755 --- a/gpsdate.init +++ b/gpsdate.init @@ -52,7 +52,7 @@ case "$1" in stop) # This should use start-stop-daemon and create a pid file echo "Stopping gpsdate in a brutal way" - killall -9 gpsdate + kill -9 `pidof $DAEMON` ;; restart)