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:
Holger Hans Peter Freyther 2013-06-20 10:07:11 +02:00
parent 8632014640
commit 660b1b7fb7
1 changed files with 2 additions and 2 deletions

View File

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