Package: gpsd
Version: 2.37-6
Severity: normal

Please forgive me if I have misunderstood how this is supposed 
to work.

I want gpsd to start when I plug in the USB device.

debconf asks me this question:

  Start gpsd automatically on boot?

This isn't what I want so I say no.  It asks no other questions 
and saves this in /etc/default/gpsd:

  START_DAEMON="false"
  USBAUTO="false"

As expected, /etc/init.d/gpsd looks at this and doesn't start 
gpsd at boot.

When I hotplug the device, /lib/udev/gpsd.hotplug.wrapper is 
called and does this:

  [ "$START_DAEMON" = "true" ] || exit 0

Since START_DAEMON is false, it exits.


So I think there are two problems here.  Firstly, if I say "no" 
to starting on boot, debconf should ask me about hotplugging and 
set USBAUTO based on my answer.  Secondly, 
/lib/udev/gpsd.hotplug.wrapper should not exit immediately when 
START_DAEMON is false (I'm unsure whether the rest of the hotplug 
script should or shouldn't run in the case when the daemon was 
started at boot).

I have tested this on my system by (a) editting /etc/default/gpsd 
to set START_DAEMON=false and USBAUTO=true and (b) reversing the 
sense of the test in /lib/udev/gpsd.hotplug.wrapper, and it now 
seems to do what I wanted.

Regards,  Phil.




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to