[Top][All Lists]

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

Re: socket activation and -n?

From: Bernd Zeimetz
Subject: Re: socket activation and -n?
Date: Sat, 15 Feb 2020 02:13:40 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.2

On 2/11/20 1:32 AM, Russell Nelson wrote:
> How can I get systemd (spit!) to start gpsd as if I was running it by hand?

well, figure out why systemd is not doing what you want?

- did you run systemctl daemon-reload after removing your files?
- what does
   systemctl status gpsd.socket
   systemctl status gpsd.service
   journalctl -u gppsd.service


> -- gpsd.service which starts gpsd but isn't publishing to dbus
> [Unit]
> Description=GPS (Global Positioning System) Daemon
> Requires=edge_config_gps_modem.service
> After=edge_config_gps_modem.service
> [Service]
> EnvironmentFile=/var/summit-edge/gpsd.conf
> ExecStart=/usr/sbin/gpsd -b -N -n ${GPSTTY}
> Restart=on-failure
> RestartSec=10s
> [Install]

that looks okay. Are you sure that your edge_config_gps_modem.service
only returns when ${GPSTTY} is actually available?

Using udev would be the appropriate way...
Whats in the log? Check the journcalctl output from above and also look
into your daemon.log/messages...

> -- gpsd command which works
> /usr/sbin/gpsd -b -N -n /dev/ttyUSB1
> -- gpsd version
> {"class":"VERSION","release":"3.14","rev":"3.14","proto_major":3,"proto_minor":10}

... get a new gpsd version. Not sure if socket activation actually
worked back then.

 Bernd Zeimetz                            Debian GNU/Linux Developer                      
 GPG Fingerprint: ECA1 E3F2 8E11 2432 D485  DD95 EB36 171A 6FF9 435F

reply via email to

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