diff --git a/etc/systemd/system/geoclue.service.d/gpsd-socket.conf b/etc/systemd/system/geoclue.service.d/gpsd-socket.conf index 77782fcb..4969ad44 100644 --- a/etc/systemd/system/geoclue.service.d/gpsd-socket.conf +++ b/etc/systemd/system/geoclue.service.d/gpsd-socket.conf @@ -11,7 +11,7 @@ Wants=gpsd.service gpsd.socket [Service] # Handle failure situation of the socket not going away (ExecStartPost=) -ExecStartPre=-/tmp/gps-share.sock +ExecStartPre=-rm -vf /tmp/gps-share.sock # Creating a socket for geoclue to connect to # Credit: @schnell at https://gitlab.freedesktop.org/geoclue/geoclue/-/issues/145#note_1772702 ExecStartPost=sh -c "(gpspipe --nmea | ( read; read; read; cat ) | ncat --verbose --keep-open --listen --unixsock /tmp/gps-share.sock&)"