Move StartLimit* options to unit section #153

Manually merged
rarias merged 1 commits from fix-power-policy-unit into master 2025-07-24 14:35:00 +02:00

View File

@@ -18,13 +18,15 @@ in
systemd.services."power-policy" = {
description = "Set power policy to use via IPMI";
wantedBy = [ "multi-user.target" ];
unitConfig = {
StartLimitBurst = "10";
StartLimitIntervalSec = "10m";
};
serviceConfig = {
ExecStart = "${pkgs.ipmitool}/bin/ipmitool chassis policy ${cfg}";
Type = "oneshot";
Restart = "on-failure";
RestartSec = "5s";
StartLimitBurst = "10";
StartLimitIntervalSec = "10m";
};
};
};