Files

1.1 KiB

Gen1 nightly grid restart

Production host uses existing root GNU screen sessions Simulator001 (42 regions), EventSim001 (1 region), and Robust. The script deliberately refuses missing or ambiguous sessions and never force-kills a process. It verifies region UUIDs before and after restart, uses existing startup scripts and checks SYS.API and network ports. No passwords or tokens are copied or printed.

Deploy the Python file to /usr/local/sbin/ogl-gen1-nightly-restart.py, service and timer to /etc/systemd/system/ (root-owned). Run python3 /usr/local/sbin/ogl-gen1-nightly-restart.py --check first, then systemctl daemon-reload and systemctl enable --now ogl-gen1-nightly-restart.timer.

Schedule: 03:00 Europe/Berlin daily, no daytime catch-up after downtime. Logs: journalctl -u ogl-gen1-nightly-restart.service. To disable: systemctl disable --now ogl-gen1-nightly-restart.timer. The timer does not update code or start a deliberately stopped grid; startup requires all three existing screen sessions and processes. Adjust expected region counts if grid topology changes. Production startup requires the existing host-specific start scripts, not stored credentials.