Skip to content

Commit 773d5a0

Browse files
Dummyc0mastro
authored andcommitted
Change TimeoutStopSec= to TimeoutSec=
A previous PR #231 ("Increased microvm default timeout stop to 2m30s") changed the default TimeoutStopSec= to 150 to avoid the VMs almost finish booting, but TimeoutStopSec=[1] is the amount of time systemd waits for the service to stop, not start. Switch to TimeoutSec= to set both TimeoutStartSec= and TimeoutStopSec=. [1] https://www.freedesktop.org/software/systemd/man/latest/systemd.service.html#TimeoutStopSec= Signed-off-by: Dummyc0m <[email protected]>
1 parent 7f15bac commit 773d5a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nixos-modules/host/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ in
239239
WorkingDirectory = "${stateDir}/%i";
240240
ExecStart = "${stateDir}/%i/current/bin/microvm-run";
241241
ExecStop = "${stateDir}/%i/booted/bin/microvm-shutdown";
242-
TimeoutStopSec = 150;
242+
TimeoutSec = 150;
243243
Restart = "always";
244244
RestartSec = "5s";
245245
User = user;

0 commit comments

Comments
 (0)