mirror of
https://github.com/myronblair/jarvis
synced 2026-07-28 08:43:00 -05:00
Fix Windows agent: exit(1) after self-update so SCM restarts the service
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).
This commit is contained in:
@@ -1 +1 @@
|
||||
974c117db29ae2cc417cf70046af32a688037b887bb08b17a18b1a0be37dec6f
|
||||
224a634375b5d49ccc0a012e0e122ade5f8a1302615450dffbf9a03eac6b7a19
|
||||
|
||||
Reference in New Issue
Block a user