summaryrefslogtreecommitdiff
path: root/systemd
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2018-06-22 13:17:36 -0700
committerGary E. Miller <gem@rellim.com>2018-06-22 13:17:36 -0700
commit8453f04de26ab76c6d02721076a482edac383f52 (patch)
tree28c34a30c490b6afa184e04a395444c411f3eee8 /systemd
parent9b0ca6f122518753c6bd69240de54e2f67023f12 (diff)
downloadgpsd-8453f04de26ab76c6d02721076a482edac383f52.tar.gz
gps*service: Files looking for gpsdctl and gpsd in wrong place.
Diffstat (limited to 'systemd')
-rw-r--r--systemd/gpsd.service2
-rw-r--r--systemd/gpsdctl@.service4
2 files changed, 3 insertions, 3 deletions
diff --git a/systemd/gpsd.service b/systemd/gpsd.service
index 2707ff90..c1f193cc 100644
--- a/systemd/gpsd.service
+++ b/systemd/gpsd.service
@@ -8,7 +8,7 @@ After=chronyd.service
Type=forking
EnvironmentFile=-/etc/default/gpsd
EnvironmentFile=-/etc/sysconfig/gpsd
-ExecStart=/usr/sbin/gpsd $GPSD_OPTIONS $OPTIONS $DEVICES
+ExecStart=/usr/local/sbin/gpsd $GPSD_OPTIONS $OPTIONS $DEVICES
[Install]
WantedBy=multi-user.target
diff --git a/systemd/gpsdctl@.service b/systemd/gpsdctl@.service
index 26e49a28..1c80101d 100644
--- a/systemd/gpsdctl@.service
+++ b/systemd/gpsdctl@.service
@@ -10,5 +10,5 @@ Environment="GPSD_SOCKET=/var/run/gpsd.sock"
EnvironmentFile=-/etc/default/gpsd
EnvironmentFile=-/etc/sysconfig/gpsd
RemainAfterExit=yes
-ExecStart=/bin/sh -c "[ \"$USBAUTO\" = true ] && /usr/sbin/gpsdctl add /dev/%I || :"
-ExecStop=/bin/sh -c "[ \"$USBAUTO\" = true ] && /usr/sbin/gpsdctl remove /dev/%I || :"
+ExecStart=/bin/sh -c "[ \"$USBAUTO\" = true ] && /usr/local/sbin/gpsdctl add /dev/%I || :"
+ExecStop=/bin/sh -c "[ \"$USBAUTO\" = true ] && /usr/local/sbin/gpsdctl remove /dev/%I || :"