Description of problem: (Found after a debugging session with a user on IRC) When gpsd is started via systemd, it ignores the device node configured in /etc/sysconfig/gpsd. From /usr/lib/systemd/system/gpsd.service: ExecStart=/usr/sbin/gpsd -N $GPSD_OPTIONS $OPTIONS $DEVICES From /etc/sysconfig/gpsd: DEVICE="/dev/ttyUSB0" i.e. the variable defined in the configuration file is DEVICE, rather than DEVICES. A quick look at gpsd(8) reveals that multiple devices may be defined, so DEVICES is the more correct naming. Version-Release number of selected component (if applicable): gpsd-3.11-4.mga5 How reproducible: Without access to a GPS device I can only guess "always". Steps to Reproduce: 1. Get a GPS device 2. Change the DEVICE variable in /etc/sysconfig/gpsd to reflect its device node 3. Start gpsd 4. Verify that it tries to open another device node Reproducible: Steps to Reproduce:
I neglected to mention the fix for this issue: Just edit /etc/sysconfig/gpsd and change the variable name from DEVICE to DEVICES. The same change in the default version of the file from the RPM should permanently fix the issue for new users. There is, however, a question about upgrades in this case - if DEVICE was the variable used in mga4, it might just be easier to change /usr/lib/systemd/system/gpsd.service instead. Or maybe add both variables in /usr/lib/systemd/system/gpsd.service for compatibility?
Unfortunately this package has no dedicated maintainer. Adding in CC some packagers who did update it in the past. Seems an easy fix.
Keywords: (none) => Junior_jobCC: (none) => fundawang, luigiwalser, r.wobben, rwobben, shlomif
Hi Theodoros! Can you provide a patch against "mgarepo co gpsd" to fix the problem? Generated by "svn diff". Regards, -- Shlomi Fish
Is this bug still valid?
Keywords: (none) => NEEDINFOCC: (none) => marja11Assignee: bugsquad => pkg-bugs
No replies to the two questions and it's almost 3 and 1½ years later, respectively. Closing
Status: NEW => RESOLVEDResolution: (none) => OLD