Ticket #1937 (closed defect: fixed)
gpsd is killed when running /etc/init.d/gpsd restart
|Reported by:||niccolo||Owned by:||julian_chu|
|Severity:||normal||Keywords:||gpsd restart kill killall|
|Blocking:||Estimated Completion (week):|
Running the script /etc/init.d/gpsd with the restart option, causes the gpsd to be killed.
This is beacuse the script executes killall gpsd, actually killing itself before the new start.
A quick and dirty workaround is to rename the script as gpsdaemon or somthing alike.
I attach a modified version of the script that tries to retrieve the PID of the daemon before killing it.
Otherwise remove the restart option from the usage help.