[Top][All Lists]

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

gpsd.socket file reverts to default

From: Rich Wales
Subject: gpsd.socket file reverts to default
Date: Fri, 5 Jun 2020 14:51:45 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0 Thunderbird/68.9.0

Ubuntu 20.04 LTS; gpsd 3.20 (installed from the Ubuntu package).

I have sometimes found that gpsd is not running.  When I investigated, I discovered that the socket file (/var/run/gpsd.sock) was owned by root, instead of by gpsd -- evidently meaning that gpsd would not start because it couldn't acquire the socket.

I also determined that the /var/systemd/system/gpsd.socket configuration file had reverted to its original default contents:

Description=GPS (Global Positioning System) Daemon Sockets

# To allow gpsd remote access, start gpsd with the -G option and
# uncomment the next two lines:
# ListenStream=[::1]:2947
# ListenStream=


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.

This has happened at least twice on this particular computer.

I edited the gpsd.socket file back the way it was previously, did "systemctl daemon-reload" to reread the configuration, and removed the /var/run/gpsd.sock file, and after doing all this I was able to restart the gpsd service.

Any idea what might be going on here, and how I can keep the gpsd.socket contents from being reverted?

Rich Wales

reply via email to

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