mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-25 12:49:26 +01:00
{chrony,gpsd}: add working gps sync config
This commit is contained in:
parent
3b61bebae6
commit
af1f376f18
4
etc/chrony/conf.d/gps.conf
Normal file
4
etc/chrony/conf.d/gps.conf
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
refclock SHM 0 poll 3 refid GPS1
|
||||||
|
# unlikely to work with usb
|
||||||
|
refclock SHM 1 refid GPS2
|
||||||
|
refclock SOCK /var/run/chrony.ttyUSB0.sock refid SOCK
|
@ -1,4 +1,10 @@
|
|||||||
[Service]
|
[Service]
|
||||||
|
Type=exec
|
||||||
EnvironmentFile=-/etc/gpsd.aminda.conf
|
EnvironmentFile=-/etc/gpsd.aminda.conf
|
||||||
ExecStart=
|
ExecStart=
|
||||||
ExecStart=/usr/sbin/gpsd --debug 2 --nowait --badtime $GPSD_OPTIONS $OPTIONS $DEVICES $AMINDAGPSD
|
# PRIVACY WARNING! --listenany happily allows anyone to ask where the host is
|
||||||
|
ExecStartPre=-/usr/sbin/modprobe pps_ldisc
|
||||||
|
ExecStart=/usr/sbin/gpsd /dev/gps0 --listenany --nowait --foreground $AMINDAGPSD
|
||||||
|
ExecReload=/usr/bin/killall -HUP gpsd
|
||||||
|
Restart=always
|
||||||
|
RestartSec=5s
|
||||||
|
Loading…
Reference in New Issue
Block a user