summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2013-06-20 10:09:53 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2013-06-20 10:13:18 +0200
commitf07a52709feca7a7f75a3d637a6f1ad5df6e3fa4 (patch)
tree8a86dabc38ba13aa221ad2ddde9ec9deb4ce64fc
parent660b1b7fb76f13b3ef2c6051cd1355c61b0d9253 (diff)
downloadgpsdate-f07a52709feca7a7f75a3d637a6f1ad5df6e3fa4.tar.gz
gpsdate-f07a52709feca7a7f75a3d637a6f1ad5df6e3fa4.tar.bz2
gpsdate-f07a52709feca7a7f75a3d637a6f1ad5df6e3fa4.tar.xz
gpsdate-f07a52709feca7a7f75a3d637a6f1ad5df6e3fa4.zip
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.
-rwxr-xr-xgpsdate.init3
1 files changed, 3 insertions, 0 deletions
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)