[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gpsd.socket file reverts to default
From: |
Charles Curley |
Subject: |
Re: gpsd.socket file reverts to default |
Date: |
Fri, 5 Jun 2020 16:23:37 -0600 |
On Fri, 5 Jun 2020 14:51:45 -0700
Rich Wales <richw@richw.org> wrote:
> I had previously added the line "SocketUser=gpsd", and also commented
> out the second ListenStream line (since I am not using IPv6 on the
> system in question). But the original version of the configuration
> file reappeared from somewhere.
What is going on is that files under /var/systemd/ get updated by your
package manager (and possibly other things), and your changes get
stomped upon.
To fix this, run "systemctl edit <unit.name>". In this case, unit.name
is gpsd.socket. This will copy the unit file to /etc/systemd, which is
reserved for your custom files, and takes precedence over /var/systemd.
Or copy the unit file in manually and edit it there. See "man systemctl"
and search on "edit" for the gory details. Then run "systemctl
daemon-reload".
systemd is a RPITA, and requires a lot of study to get right. I make no
claim to understanding it.
Incidentally, a lot of other packages are doing this sort of thing.
Keep an eye out for them.
--
Does anybody read signatures any more?
https://charlescurley.com
https://charlescurley.com/blog/
Re: gpsd.socket file reverts to default,
Charles Curley <=