gpsd-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gpsd-users] Issue with Rasbian Jessie


From: Alexander Carver
Subject: Re: [gpsd-users] Issue with Rasbian Jessie
Date: Sat, 5 Mar 2016 12:08:40 -0800
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0

On 2016-03-05 11:58, Jon Brase wrote:
> On Sat, 05 Mar 2016 04:49:54 -0600, Bo Berglund <address@hidden>
> wrote:
> 
>> When I tried to check it using cgps -s there was a screen with no data
>> anywhere which disappeared after a few seconds with a timeout message.
>>
> 
> I believe the gpsd package in Raspbian sets up GSPD to autostart. With
> the default configuration, however, GPSD dies at startup, but systemd is
> "helpfully" listening on its port, ready to pass data on (but GPSD is
> dead). As a result, when you run GPSD from a console, it will find the
> default port already occupied, and cgps with the default port will get a
> connection (systemd init is listening), but no data (init isn't doing
> anything with the port, other than notionally forwarding it to GPSD). If
> systemd has tried to start GSPD, then whether GSPD is currently running
> or not, you can't use the default port to start it from a terminal. You
> have to use the -S option to specify an alternate port, then point cgps
> at that port when you run it.

If you need to keep systemd you should be able to get around systemd's
capture of the socket by disabling its use for gpsd:

systemctl disable gpsd.socket

(Note this works for all other services, too)

Raspbian probably set it up generically like many other services that
spawn at connection which doesn't make sense for gpsd.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]