Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
highvolt-dev opened this issue Jan 24, 2022 · 0 comments
Closed

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

highvolt-dev opened this issue Jan 24, 2022 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@highvolt-dev
Copy link
Owner

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

@highvolt-dev highvolt-dev added enhancement New feature or request good first issue Good for newcomers labels Jan 24, 2022
highvolt-dev added a commit that referenced this issue Jan 24, 2022
hugoh added a commit to hugoh/tmo-monitor that referenced this issue May 26, 2023
* Fixed tmo_monitor.gateway module installation

* Update README.md

add Windows directions

* use meaningful exit status codes, fixes highvolt-dev#52

* clarify that a clean run will exit with status code 0 as expected

* add project logo

* First commit to log to syslog - not working yet

Moved all the logging from print_and_log to logging, but syslog doesn't
work. Need to debug.

* Made Linux syslog logging work

* Moved away from f-Strings to lower Python version requirement

* Added support for Windows (untested)

* Fixed log message format

* Fixed out-of-scope use of syslog_socket

* Fixed missing leading space

* add missing import

* fixes highvolt-dev#56 breaking change to webapp login after Nokia firmware upgrade to 1.2103.00.0338

* version bump

* add IPv6 ping support, fixes highvolt-dev#43

* use ping6 binary if available for ipv6 ping functionality, fixes highvolt-dev#43

* fix setting IPv6 ping via .env

* conditionally check for lsid cookie to avoid runtime error with nokia 2104 firmware update

* calculate arcaydyan eNB ID using decimal base fixes highvolt-dev#68 caused by firmware update

* safely access 5g band info for arcadyan gateway - fixes highvolt-dev#75

* add support for alternative connectivity checks - fixes highvolt-dev#13 highvolt-dev#78 ; add explicit support for Sagecom gateway

* correct README

* explicitly pass -4 flag to ping command to try ipv4 with ping command except for OS X clients, fixes highvolt-dev#77

---------

Co-authored-by: highvolt-dev <highvoltage@gmail.com>
hugoh added a commit to hugoh/tmo-monitor that referenced this issue May 26, 2023
* Fixed tmo_monitor.gateway module installation

* Update README.md

add Windows directions

* use meaningful exit status codes, fixes highvolt-dev#52

* clarify that a clean run will exit with status code 0 as expected

* add project logo

* First commit to log to syslog - not working yet

Moved all the logging from print_and_log to logging, but syslog doesn't
work. Need to debug.

* Made Linux syslog logging work

* Moved away from f-Strings to lower Python version requirement

* Added support for Windows (untested)

* Fixed log message format

* Fixed out-of-scope use of syslog_socket

* Fixed missing leading space

* add missing import

* fixes highvolt-dev#56 breaking change to webapp login after Nokia firmware upgrade to 1.2103.00.0338

* version bump

* add IPv6 ping support, fixes highvolt-dev#43

* use ping6 binary if available for ipv6 ping functionality, fixes highvolt-dev#43

* fix setting IPv6 ping via .env

* conditionally check for lsid cookie to avoid runtime error with nokia 2104 firmware update

* calculate arcaydyan eNB ID using decimal base fixes highvolt-dev#68 caused by firmware update

* safely access 5g band info for arcadyan gateway - fixes highvolt-dev#75

* add support for alternative connectivity checks - fixes highvolt-dev#13 highvolt-dev#78 ; add explicit support for Sagecom gateway

* correct README

* explicitly pass -4 flag to ping command to try ipv4 with ping command except for OS X clients, fixes highvolt-dev#77

* Pushing on docker-image

---------

Co-authored-by: highvolt-dev <highvoltage@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant