Restart the job if it fails.

This commit is contained in:
niten 2023-05-03 09:43:59 -07:00
parent f7bde8592f
commit 6e002176af
1 changed files with 2 additions and 0 deletions

View File

@ -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 \