|
From: | Hans Kurscheidt |
Subject: | Re: open SHM data only after cgps start |
Date: | Sat, 6 Feb 2021 12:21:01 +0100 |
User-agent: | Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 |
Hi there, > At a guess, you have a systemd unit file for gpsd that does not start gpsd, but only listens for a client to connect <If I'm not totally lucking LINUX knowledge, the statement below shows clearly that gpsd is running as a process (718), isn't it??
hk@orangepizero:~$ systemctl status gpsd ● gpsd.service - GPS (Global Positioning System) DaemonLoaded: loaded (/etc/systemd/system/gpsd.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2021-02-05 20:04:03 CET; 53s ago Main PID: 718 (gpsd) Tasks: 2 (limit: 4915) CGroup: /system.slice/gpsd.service └─718 /usr/sbin/gpsd -N -n /dev/ttyACM0Feb 05 20:04:03 orangepizero systemd[1]: Started GPS (Global Positioning System) Daemon.
hk@orangepizero:~$ ps -ef | grep gpsdnobody 718 1 0 20:04 ? 00:00:00 /usr/sbin/gpsd -N -n /dev/ttyACM0
I therefore don't understand your statement. Here's the UNIT file [Unit] Description=GPS (Global Positioning System) Daemon Requires=gpsd.socket # Needed with chrony SOCK refclock #After=chronyd.service [Service] EnvironmentFile=-/etc/default/gpsd EnvironmentFile=-/etc/sysconfig/gpsd ExecStart=/usr/sbin/gpsd -N $GPSD_OPTIONS $DEVICES [Install] WantedBy=multi-user.target Also=gpsd.socket in the config file $GPSD_OPTIONS is "-n" and $DEVICES is "/dev/ttyACM0" BR hk Am 06.02.2021 um 11:58 schrieb shouldbe q931:
On Sat, Feb 6, 2021 at 10:43 AM Hans Kurscheidt <lve0200@gmail.com> wrote:Bonjour Gary, What does not look correct to you? < As you can see, the unliked systemd starts gpsd w/ or w/out "-n" at boot. 4me therefore, systemd is not the culprit, but obviously I luck deeper understanding of the gpsd internals. However I would guess that gpsd, once started from systemd would wait for an "open" from some application wanting GPS data,A gpsd client and using SHM are two different things At a guess, you have a systemd unit file for gpsd that does not start gpsd, but only listens for a client to connect <snipped for brevity> If you posted your systemd unit file, those of us that use systemd might be able to help you resolve your issue. Cheers
[Prev in Thread] | Current Thread | [Next in Thread] |