Commit Graph

2 Commits

Author SHA1 Message Date
Oliver Smith 68bcf620b4 Fix build against gpsd >= 3.20
The previous version was written against gpsd 3.10. This also makes the
date more precise, previously microseconds were set to 0.

GPSD_API_MAJOR_VERSION is defined in gps.h, together with a changelog:
https://gitlab.com/gpsd/gpsd/-/blob/master/include/gps.h

Use Pau's compat_gps_read() from:
https://gerrit.osmocom.org/c/osmocom-bb/+/11609

Related: SYS#6222
2022-12-14 19:25:01 +01:00
Harald Welte 8c0f608643 add gps-watchdog
gps-watchdog is a small tool that will connect to gpsd as a client using
libgps.  If no data is received for a configurable timeout, a
configurable systemd service will be killed via 'systemctl kill'.

The idea is that this will restart gpsd, and some ExecStartPre of the
gpsd service is then re-initializing the gps receiver hardware.
2015-08-05 09:44:45 +02:00