From 87367dab041d3582d189421e51000c5e1a9b352d Mon Sep 17 00:00:00 2001 From: NeilClack Date: Mon, 17 Aug 2026 19:53:06 -0500 Subject: [PATCH] Temporarily remove healthcheck Healthcheck may be failing for reasons not related to a bad binary, preventing a good binary from booting. --- configuration.nix | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/configuration.nix b/configuration.nix index 58fc08d..8c2a9de 100644 --- a/configuration.nix +++ b/configuration.nix @@ -239,30 +239,30 @@ in }; # --- Health check service: runs after nixos-upgrade --- - systemd.services.radiantwave-healthcheck = { - description = "Verify RadiantWave is running after upgrade, rollback if not"; - after = [ "nixos-upgrade.service" ]; - wantedBy = [ "nixos-upgrade.service" ]; - serviceConfig = { - Type = "oneshot"; - # Give cage time to start radiantwave after the switch - ExecStartPre = "${pkgs.coreutils}/bin/sleep 90"; - }; - script = '' - # The installed `radiantwave` is a makeWrapper script that execs the real - # binary (`.radiantwave-unwrapped`), so the process comm is not exactly - # `radiantwave`; match the exec'd binary's command line instead. - if ${pkgs.procps}/bin/pgrep -f '\.radiantwave-unwrapped' > /dev/null; then - echo "RadiantWave is running, upgrade successful" - exit 0 - fi + # systemd.services.radiantwave-healthcheck = { + # description = "Verify RadiantWave is running after upgrade, rollback if not"; + # after = [ "nixos-upgrade.service" ]; + # wantedBy = [ "nixos-upgrade.service" ]; + # serviceConfig = { + # Type = "oneshot"; + # # Give cage time to start radiantwave after the switch + # ExecStartPre = "${pkgs.coreutils}/bin/sleep 90"; + # }; + # script = '' + # # The installed `radiantwave` is a makeWrapper script that execs the real + # # binary (`.radiantwave-unwrapped`), so the process comm is not exactly + # # `radiantwave`; match the exec'd binary's command line instead. + # if ${pkgs.procps}/bin/pgrep -f '\.radiantwave-unwrapped' > /dev/null; then + # echo "RadiantWave is running, upgrade successful" + # exit 0 + # fi - echo "RadiantWave not found after upgrade, rolling back..." + # echo "RadiantWave not found after upgrade, rolling back..." - # Roll back to previous NixOS generation - /run/current-system/sw/bin/nixos-rebuild switch --rollback + # # Roll back to previous NixOS generation + # /run/current-system/sw/bin/nixos-rebuild switch --rollback - echo "Rollback completed at $(date)" - ''; - }; + # echo "Rollback completed at $(date)" + # ''; + # }; }