Restart the job if it fails.
This commit is contained in:
parent
f7bde8592f
commit
6e002176af
|
@ -58,6 +58,8 @@ in {
|
||||||
wantedBy = [ "graphical-session.target" ];
|
wantedBy = [ "graphical-session.target" ];
|
||||||
after = [ "graphical-session.target" ];
|
after = [ "graphical-session.target" ];
|
||||||
path = with pkgs; [ nettools xprintidle ];
|
path = with pkgs; [ nettools xprintidle ];
|
||||||
|
restartIfChanged = true;
|
||||||
|
restart = "always";
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStart = pkgs.writeShellScript "launch-wallfly.sh" ''
|
ExecStart = pkgs.writeShellScript "launch-wallfly.sh" ''
|
||||||
${pkgs.wallfly}/bin/wallfly \
|
${pkgs.wallfly}/bin/wallfly \
|
||||||
|
|
Loading…
Reference in New Issue