Skip to content

Commit

Permalink
Increase restart timer
Browse files Browse the repository at this point in the history
with one second timers you easily run into systemd rate limits and the
service just gets stuck
  • Loading branch information
SuperSandro2000 authored and astro committed Nov 17, 2023
1 parent fb78ecd commit 1301dc4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/graphics.nix
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ nixpkgs.lib.nixosSystem {
# Environment = "WAYLAND_DISPLAY=wayland-1";
ExecStart = "${wayland-proxy-virtwl}/bin/wayland-proxy-virtwl --virtio-gpu --x-display=0 --xwayland-binary=${xwayland}/bin/Xwayland";
Restart = "on-failure";
RestartSec = 1;
RestartSec = 5;
};
wantedBy = [ "default.target" ];
};
Expand Down
4 changes: 2 additions & 2 deletions nixos-modules/host.nix
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ in
GuessMainPID = "no";
WorkingDirectory = "${stateDir}/%i";
Restart = "always";
RestartSec = "1s";
RestartSec = "5s";
SyslogIdentifier = "microvm-virtiofsd@%i";
LimitNOFILE = 1048576;
};
Expand Down Expand Up @@ -430,7 +430,7 @@ in
ExecStop = "${stateDir}/%i/booted/bin/microvm-shutdown";
TimeoutStopSec = 90;
Restart = "always";
RestartSec = "1s";
RestartSec = "5s";
User = user;
Group = group;
SyslogIdentifier = "microvm@%i";
Expand Down

0 comments on commit 1301dc4

Please sign in to comment.