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
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Tom Gundersen (tomegun)
Bartłomiej Piotrowski (Barthalion)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

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
Comment by Max Wittal (madMAx1337) - Wednesday, 10 December 2014, 08:58 GMT
# mv /etc/gpsd.conf /etc/default/gpsd

This fixed it for me.
Comment by Doug Newgard (Scimmia) - Wednesday, 13 May 2015, 16:28 GMT
Still an issue?
Comment by Jolan Luff (jolan) - Tuesday, 23 June 2015, 14:28 GMT
Yes, still an issue.

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.
Comment by Antonio Rojas (arojas) - Wednesday, 24 June 2015, 08:35 GMT
Please test 3.15-2
Comment by Jolan Luff (jolan) - Friday, 26 June 2015, 01:44 GMT
Can confirm that 3.15-2 works, thank you.

Loading...