forked from sysmocom/gpsdate
gpsdate.init: Fix calling stop and start in the initscript
Now a stop/start could result in having two gpsdate processes running. They luckily will die once the time has been set.
This commit is contained in:
parent
8632014640
commit
660b1b7fb7
|
@ -59,8 +59,8 @@ case "$1" in
|
|||
force-reload)
|
||||
if [ $run_gpsdate = 0 ]; then exit 0; fi
|
||||
echo "Restarting ${NAME}"
|
||||
stop
|
||||
start
|
||||
$0 stop
|
||||
$0 start
|
||||
;;
|
||||
|
||||
*)
|
||||
|
|
Loading…
Reference in New Issue