Delay shutdown to August 3rd at 22h and turn on when power is back automatically #152
Reference in New Issue
Block a user
Delete Branch "adjust-august-shutdown"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #151
Delay August shutdown to the Sunday 3rd at 22:00 and configure all machines to turn on as soon as there is power. Fox won't turn off automatically but instead it will shut down when the power is cut, as it can recover properly from power cuts.
The power-policy service is working as expected:
Same for the shutdown timer:
@@ -0,0 +8,4 @@{options = {power.policy = mkOption {type = lib.types.nullOr (types.enum [ "always-on" "previous" "always-off" ]);lib.is redundant here@@ -0,0 +22,4 @@ExecStart = "${pkgs.ipmitool}/bin/ipmitool chassis policy ${cfg}";Type = "oneshot";Restart = "on-failure";RestartSec = "5s";Should we limit the restart attempts?
Maybe
StartLimitBurst=10andStartLimitIntervalSec=10m, so it can fail up to 10 times in 10 minutes? It may fail if it collides with the prometheus probe which is also using the IPMI interface, but should work after a few tries. I would choose a long interval so it can take a while to fail.e3ae73092ftoc50d24062fc50d24062fto8f7787e217