From 901d3f9238ed0df4951f458fdf534e982c64f00b Mon Sep 17 00:00:00 2001 From: twoneis Date: Sun, 21 Jul 2024 04:25:28 +0200 Subject: [PATCH] auto-restart on-failure --- modules/niri/xwl-satellite.service.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/niri/xwl-satellite.service.nix b/modules/niri/xwl-satellite.service.nix index 3c85796..8a5b947 100644 --- a/modules/niri/xwl-satellite.service.nix +++ b/modules/niri/xwl-satellite.service.nix @@ -14,6 +14,9 @@ NotifyAccess = "all"; ExecStart = "/${pkgs.xwayland-satellite}/bin/xwayland-satellite"; StandardOutput = "journal"; + + Restart = "on-failure"; + RestartSec = "5s"; }; }; }