[Top][All Lists]

[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 <> 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 <>". In this case,
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

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?

reply via email to

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