geoclue.service.d/gpsd-socket.conf: maybe fix missing rm

This commit is contained in:
Aminda Suomalainen 2024-12-01 15:29:33 +02:00
parent 8fe0eef797
commit 52ee644f5f
Signed by: Mikaela
GPG Key ID: 99392F62BAE30723

View File

@ -11,7 +11,7 @@ Wants=gpsd.service gpsd.socket
[Service] [Service]
# Handle failure situation of the socket not going away (ExecStartPost=) # 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 # Creating a socket for geoclue to connect to
# Credit: @schnell at https://gitlab.freedesktop.org/geoclue/geoclue/-/issues/145#note_1772702 # 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&)" ExecStartPost=sh -c "(gpspipe --nmea | ( read; read; read; cat ) | ncat --verbose --keep-open --listen --unixsock /tmp/gps-share.sock&)"