[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: systemd and GPSD issue
From: |
Charles Curley |
Subject: |
Re: systemd and GPSD issue |
Date: |
Fri, 14 Jul 2023 22:18:31 -0600 |
On Fri, 14 Jul 2023 11:18:46 -0700
"Gary E. Miller" <gem@rellim.com> wrote:
> Yo Charles!
>
> On Fri, 14 Jul 2023 05:46:18 -0600
> Charles Curley <charlescurley@charlescurley.com> wrote:
…
> > If you plug a GPS receiver in to your system, systemd will launch an
> > instance of gpsd.
>
> Uh, not by default. By default most distros wait for a gpsd client
> before launching gpsd.
Interesting. I just did the experiment. I made sure that gpsd was not
running:
root@jhegaala:~# ps aux | grep -i gps
root 767310 0.0 0.0 6240 644 pts/4 S+ 22:03 0:00 grep
--colour=auto -i gps root@jhegaala:~#
I then plugged my GPS receiver in, and checked again:
root@jhegaala:~# ps aux | grep -i gps
gpsd 767329 0.0 0.0 9156 2468 ? S<s 22:04 0:00
/usr/sbin/gpsd -G
root 767332 0.0 0.0 6240 716 pts/4 S+ 22:04 0:00 grep
--colour=auto -i gps
root@jhegaala:~#
This on Debian 11, gpsd 3.22-4.
I then unplugged the receiver, and shut gpsd down. I then launched a
gpsd client. gpsd and the client both ran, although the client didn't
showing anything useful. I then plugged the receiver back in. The
client started to show useful data.
--
Does anybody read signatures any more?
https://charlescurley.com
https://charlescurley.com/blog/