Skip to content

Commit 9191f9c

Browse files
committed
restart in nix module
1 parent ccd3360 commit 9191f9c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nix/module.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,11 @@ let inherit (lib) types;
5656
# TODO should this actually be put earlier, since I405-tunnel is kinda part of the network?
5757
wantedBy = [ "multi-user.target" ];
5858
path = [ pkgs.iproute2 ];
59+
startLimitIntervalSec = 90;
60+
startLimitBurst = 4;
5961
serviceConfig = {
62+
Restart = "on-failure";
63+
6064
# inspired by the Navidrome module
6165
RestrictNamespaces = true;
6266
ProtectHome = true;

0 commit comments

Comments
 (0)