From f07a52709feca7a7f75a3d637a6f1ad5df6e3fa4 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Thu, 20 Jun 2013 10:09:53 +0200 Subject: [PATCH] gpsdate.init: Implement stop using killall for now The easiest way would be to use start-stop-daemon and let it daemonize the process and create a pid file. Because all of this is not there and the application unconditionally daemonizes itself I can just use killall to stop it. --- gpsdate.init | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gpsdate.init b/gpsdate.init index 9f8e7f4..7810af6 100755 --- a/gpsdate.init +++ b/gpsdate.init @@ -50,6 +50,9 @@ 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 ;; restart)