forked from sysmocom/gpsdate
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:
parent
660b1b7fb7
commit
f07a52709f
|
@ -50,6 +50,9 @@ case "$1" in
|
||||||
;;
|
;;
|
||||||
|
|
||||||
stop)
|
stop)
|
||||||
|
# This should use start-stop-daemon and create a pid file
|
||||||
|
echo "Stopping gpsdate in a brutal way"
|
||||||
|
killall -9 gpsdate
|
||||||
;;
|
;;
|
||||||
|
|
||||||
restart)
|
restart)
|
||||||
|
|
Loading…
Reference in New Issue