mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-12-04 17:29:22 +01:00
geoclue.service.d/gpsd-socket.conf: maybe fix missing rm
This commit is contained in:
parent
8fe0eef797
commit
52ee644f5f
@ -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&)"
|
||||||
|
Loading…
Reference in New Issue
Block a user