The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

+1
+1
src/xrt/targets/service/monado.in.socket
··· 9 9 [Socket] 10 10 ListenStream=%t/@XRT_IPC_MSG_SOCK_FILENAME@ 11 11 RemoveOnStop=true 12 + FlushPending=true 12 13 13 14 [Install] 14 15 WantedBy=sockets.target