From f9882b31b911d0afe8fa8cf189d3d90ca405dd0d Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Sat, 20 Jul 2024 10:21:20 +0300 Subject: [PATCH] gpsd.service.d/aminda-additions.conf: remove /dev/gps0, it fits the EnvironmentFile better --- etc/systemd/system/gpsd.service.d/aminda-additions.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/etc/systemd/system/gpsd.service.d/aminda-additions.conf b/etc/systemd/system/gpsd.service.d/aminda-additions.conf index 73ae0286..cf71e667 100644 --- a/etc/systemd/system/gpsd.service.d/aminda-additions.conf +++ b/etc/systemd/system/gpsd.service.d/aminda-additions.conf @@ -9,7 +9,8 @@ ExecStartPre=-/usr/sbin/modprobe pps_ldisc # Empty ExecStart= before the actual ExecStart= removes the original # ExecStart= line ExecStart= -ExecStart=/usr/sbin/gpsd /dev/gps0 --readonly --nowait --foreground $AMINDAGPSD +# Maybe specify the GPS device in /etc/gpsd.aminda.conf instead? +ExecStart=/usr/sbin/gpsd --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.