From 0db898e4b8870ecc8e703ca3b6cafb6281077188 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Thu, 20 Jun 2013 11:15:45 +0200 Subject: [PATCH] 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. --- gpsdate.init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)