mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +00:00
xrt: prevent systemd from starting Monado quickly
If an OpenXR client starts Monado using socket activation, but Monado crashes during its startup, systemd will try to start the service for each subsequent IPC message, which causes both units to enter a failed state. By enabling [`FlushPending`](https://www.freedesktop.org/software/systemd/man/latest/systemd.socket.html#FlushPending=), systemd will flush pending messages and close the connection to the IPC client, preventing restarts in quick succession. Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
parent
084dae3c7e
commit
0df6f9606b
|
@ -9,6 +9,7 @@ Conflicts=@conflicts@.socket
|
||||||
[Socket]
|
[Socket]
|
||||||
ListenStream=%t/@XRT_IPC_MSG_SOCK_FILENAME@
|
ListenStream=%t/@XRT_IPC_MSG_SOCK_FILENAME@
|
||||||
RemoveOnStop=true
|
RemoveOnStop=true
|
||||||
|
FlushPending=true
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=sockets.target
|
WantedBy=sockets.target
|
||||||
|
|
Loading…
Reference in a new issue