From 6e002176af59d40f05a03f1d050a6413ad20ff10 Mon Sep 17 00:00:00 2001 From: niten Date: Wed, 3 May 2023 09:43:59 -0700 Subject: [PATCH] Restart the job if it fails. --- module.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module.nix b/module.nix index 26553b5..5c9dbd5 100644 --- a/module.nix +++ b/module.nix @@ -58,6 +58,8 @@ in { wantedBy = [ "graphical-session.target" ]; after = [ "graphical-session.target" ]; path = with pkgs; [ nettools xprintidle ]; + restartIfChanged = true; + restart = "always"; serviceConfig = { ExecStart = pkgs.writeShellScript "launch-wallfly.sh" '' ${pkgs.wallfly}/bin/wallfly \