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.
This commit is contained in:
Holger Hans Peter Freyther 2013-06-20 10:09:53 +02:00
parent 660b1b7fb7
commit f07a52709f
1 changed files with 3 additions and 0 deletions

View File

@ -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)