gpsd-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gpsd-users] GPSD under Debian 9.4: Systemd problems.


From: Charles Curley
Subject: [gpsd-users] GPSD under Debian 9.4: Systemd problems.
Date: Thu, 21 Jun 2018 17:32:56 -0600

I went to upgrade my debian 9.4 "stretch" gpsd installation to head, and
installed it with the usual "scons udev-install". I hit a few
problems....

It looks like gpsd.service expects either /etc/default/gpsd
or /etc/sysconfig/gpsd. However udev-install provides neither. A
work-around hack is to run gpsd manually.

gpsd.service expects to find gpsd at /usr/sbin/gpsd. However, "scons
udev-install" puts it at /usr/local/sbin/. Is it possible for systemd
to look for it in both places? Or have systemd-install hack that line
after copying it in?

--------------------------------------------------
address@hidden:~# ps aux | grep gpsd ; ll /dev/ttyU* /var/run/gp*
nobody   31127  0.0  0.0  43744  3128 ?        S<s  16:26   0:00 
/usr/local/sbin/gpsd
root     31173  0.0  0.0  12784   952 pts/10   S+   16:30   0:00 grep 
--colour=auto gpsd
crw-rw---- 1 root dialout 188, 0 Jun 21 16:26 /dev/ttyUSB0
srw------- 1 root root         0 Jun 21 16:26 /var/run/gpsd.sock=
address@hidden:~#
--------------------------------------------------

So I further edited gpsd.service and added the options I wanted.

--------------------------------------------------
ExecStart=/usr/local/sbin/gpsd -nG /dev/ttyUSB0
--------------------------------------------------

I still had to manually kill gpsd to get it to recognize the ttyUSB0
device file. But it now runs:

--------------------------------------------------
address@hidden:~# ps aux | grep gpsd ; ll /dev/ttyU* /var/run/gp*
nobody   31282  0.7  0.0  51968  3708 ?        S<sl 16:34   0:01 
/usr/local/sbin/gpsd -nG /dev/ttyUSB0
root     31311  0.0  0.0  12784  1008 pts/10   S+   16:37   0:00 grep 
--colour=auto gpsd
crw-rw---- 1 root dialout 188, 0 Jun 21 16:34 /dev/ttyUSB0
srw------- 1 root root         0 Jun 21 16:26 /var/run/gpsd.sock=
address@hidden:~# 
--------------------------------------------------

SConstruct has "Utility('udev-uninstall',...," but that does not
appear to handle systemd files. I had to run the systemd_uninstall
target separate from udev-uninstall. Since udev-install does install
the systemd stuff, perhaps that should udev-uninstall should call
systemd-uninstall?

Also, please make them consistent: systemd-uninstall, please (dash, not
underscore).

I believe systemd_uninstall should also call systemctl daemon-reload.


-- 
"When we talk of civilization, we are too apt to limit the meaning of
the word to its mere embellishments, such as arts and sciences; but
the true distinction between it and barbarism is, that the one
presents a state of society under the protection of just and
well-administered law, and the other is left to the chance government
of brute force."
- The Rev. James White, Eighteen Christian Centuries, 1889
Key fingerprint = CE5C 6645 A45A 64E4 94C0  809C FFF6 4C48 4ECD DFDB
https://charlescurley.com



reply via email to

[Prev in Thread] Current Thread [Next in Thread]