Fix NVIDIA self-heal recovery flow

This commit is contained in:
Mikhail Chusavitin
2026-04-20 09:43:22 +03:00
parent 1cfabc9230
commit 84a2551dc0
4 changed files with 215 additions and 4 deletions

View File

@@ -61,6 +61,9 @@ func (s *System) ServiceState(name string) string {
}
func (s *System) ServiceDo(name string, action ServiceAction) (string, error) {
if name == "bee-nvidia" && action == ServiceRestart {
return runNvidiaRecover("restart-drivers")
}
// bee-web runs as the bee user; sudo is required to control system services.
// /etc/sudoers.d/bee grants bee NOPASSWD:ALL.
raw, err := exec.Command("sudo", "systemctl", string(action), name).CombinedOutput()