highvolt-dev / tmo-monitor

A lightweight, cross-platform Python 3 script that can monitor the T-Mobile Home Internet Nokia, Arcadyan, and Sagecom 5G Gateways for 4G/5G bands, cellular site (tower), and internet connectivity and reboots as needed or on-demand.
MIT License
89 stars 15 forks source link

Exit with Non-zero Status Code on Reboot Decision #52

Closed highvolt-dev closed 2 years ago

highvolt-dev commented 2 years ago

Using a distinct status code when exiting after rebooting can allow monitoring tools to introspect that a reboot occurred without scraping logs.