Restart disable-offload in case it fails

This commit is contained in:
Linus Heckemann 2021-01-05 18:48:27 +01:00
parent 278cc1ec1b
commit 4768e9d4e2

View File

@ -36,6 +36,8 @@ in {
serviceConfig = { serviceConfig = {
Type = "oneshot"; Type = "oneshot";
ExecStart = "${pkgs.ethtool}/bin/ethtool --offload eth0 tx off"; ExecStart = "${pkgs.ethtool}/bin/ethtool --offload eth0 tx off";
Restart = "on-failure";
RestartSec = "10";
}; };
}; };
} }