mirror of
https://github.com/myronblair/jarvis
synced 2026-06-30 17:50:23 -05:00
205fc37c12
After writing the updated script, _stop_event.set() caused a clean exit (code 0). SCM failure recovery only fires on non-zero exit, so the service stayed down permanently after every auto-update. Fix: set _update_restart=True before signalling stop; SvcDoRun() checks the flag after main() returns and calls sys.exit(1), which triggers the sc.exe failure recovery chain (restart/5s/10s/30s configured at install).