gpsd: be safe and readonly, just in case some gps was brickable

This commit is contained in:
Aminda Suomalainen 2024-07-20 07:31:23 +03:00
parent 38eeaaa4ce
commit 80119c9059
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q

View File

@ -9,7 +9,7 @@ ExecStartPre=-/usr/sbin/modprobe pps_ldisc
# Empty ExecStart= before the actual ExecStart= removes the original
# ExecStart= line
ExecStart=
ExecStart=/usr/sbin/gpsd /dev/gps0 --nowait --foreground $AMINDAGPSD
ExecStart=/usr/sbin/gpsd /dev/gps0 --readonly --nowait --foreground $AMINDAGPSD
# Missing from the original unit, will reconnect all GPS says man gpsd
ExecReload=/usr/bin/killall -HUP gpsd
# Avoiding systemd considering the unit as failed.