shell-things/etc/systemd/system/gpsd.service.d/aminda-additions.conf

20 lines
796 B
Plaintext
Raw Normal View History

# As usual this is a systemd drop-in, so I can adjust what gpsd.service does
# without having to fight with package management.
2024-07-18 12:03:09 +02:00
[Service]
Type=exec
# In case the file exists, I can throw my own additional options there
2024-07-18 12:03:09 +02:00
EnvironmentFile=-/etc/gpsd.aminda.conf
# Kernel module possibly required for USB GPS devices especially with Chrony?
2024-10-04 12:21:21 +02:00
ExecStartPre=-modprobe pps_ldisc
# Empty ExecStart= before the actual ExecStart= removes the original
# ExecStart= line
ExecStart=
# Maybe specify the GPS device in /etc/gpsd.aminda.conf instead?
2024-10-04 12:21:21 +02:00
ExecStart=gpsd --readonly --nowait --foreground $AMINDAGPSD
# Missing from the original unit, will reconnect all GPS says man gpsd
2024-10-04 12:21:21 +02:00
ExecReload=killall -HUP gpsd
# Avoiding systemd considering the unit as failed.
Restart=always
RestartSec=5s
# vim: filetype=systemd