FS#38207 - [gpsd] /etc/gpsd.conf is not read correctly by hotplug
Attached to Project:
Arch Linux
Opened by Jon Watte (jwatte) - Friday, 20 December 2013, 17:22 GMT
Last edited by Antonio Rojas (arojas) - Friday, 26 June 2015, 06:29 GMT
Opened by Jon Watte (jwatte) - Friday, 20 December 2013, 17:22 GMT
Last edited by Antonio Rojas (arojas) - Friday, 26 June 2015, 06:29 GMT
|
Details
Description:
The chain of events that makes gpsd detect USB serial devices is supposed to be configured by /etc/gpsd.conf, but the scripts actually try to look for /etc/default/gpsd.conf, so turning off USB auto-detection in the config file doesn't work. This makes gpsd try to use any serial device that's plugged in, unconditionally, which is very bad if those devices are not intended to be used with gpsd. Steps to reproduce: 1. Install gpsd 2. Edit /etc/gpsd.conf to turn off USBAUTO 3. Make sure everything's properly reloaded (easiest: reboot machine) 4. Plug in a serial device that gpsd should NOT look at 5. Inspect logs; see that gpsd still looked at it alternatively: 5. Watch as nuclear launch sequence is initiated because gpsd did things we told it not to do |
This task depends upon
Closed by Antonio Rojas (arojas)
Friday, 26 June 2015, 06:29 GMT
Reason for closing: Fixed
Additional comments about closing: gpsd 3.15-2
Friday, 26 June 2015, 06:29 GMT
Reason for closing: Fixed
Additional comments about closing: gpsd 3.15-2
This fixed it for me.
Was trying to figure out why gpsd.conf was being ignored and looked at the gpsd.service file:
[Service]
EnvironmentFile=-/etc/default/gpsd
EnvironmentFile=-/etc/sysconfig/gpsd
ExecStart=/usr/bin/gpsd -N $GPSD_OPTIONS $OPTIONS $DEVICES
mv'd /etc/gpsd.conf to /etc/default/gpsd and it worked ok.