Ticket #1937 (closed defect: fixed)

Opened 11 years ago

Last modified 11 years ago

gpsd is killed when running /etc/init.d/gpsd restart

Reported by: niccolo Owned by: julian_chu
Priority: highest Milestone:
Component: Distro Version: Om2007.2
Severity: normal Keywords: gpsd restart kill killall
Cc: julian_chu@… Blocked By:
Blocking: Estimated Completion (week):
HasPatchForReview: PatchReviewResult:
Reproducible: always


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.


gpsd (2.1 KB) - added by niccolo 11 years ago.
The modified script /etc/init.d/gpsd

Change History

Changed 11 years ago by niccolo

The modified script /etc/init.d/gpsd

comment:1 Changed 11 years ago by zecke

  • Cc julian_chu@… added

@distro team: We should have start-stop-daemon in Om, we should use that for starting and stopping the daemons... Also grep "killall" /etc/init.d/* and adjust whatever else is using killall.

comment:2 Changed 11 years ago by julian_chu

  • Status changed from new to in_testing

I had changed the gpsd daemon script to use start-stop-daemon in this commit 8d72ae1a103365f4042a82f0d59cbd0cf95a8c73

comment:3 Changed 11 years ago by julian_chu

  • Status changed from in_testing to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.