Skip to content

upsmon: introduce OBLBDURATION config toggle#2406

Merged
jimklimov merged 1 commit intonetworkupstools:masterfrom
jimklimov:issue-321
Apr 17, 2024
Merged

upsmon: introduce OBLBDURATION config toggle#2406
jimklimov merged 1 commit intonetworkupstools:masterfrom
jimklimov:issue-321

Conversation

@jimklimov
Copy link
Member

@jimklimov jimklimov commented Apr 16, 2024

Largely follows in the footsteps of #2104 which introduced the OFFDURATION toggle.

This PR adds an OBLBDURATION toggle to delay issuing FSD (primary) or commencing a shutdown after HOSTSYNC (secondary without a seen FSD alert), for users that deem this desirable (some use-cases suggested in issue #321 discussion - primarily to survive short hiccups that happen at the wrong moment) at their discretion and risk of an ungraceful shutdown.

Closes: #321

CC @desertwitch @dark-penguin @clepple @aquette

Testing in practice would be as welcome as code review :)

@jimklimov jimklimov added enhancement need testing Code looks reasonable, but the feature would better be tested against hardware or OSes upsmon Shutdowns and overrides and battery level triggers Issues and PRs about system shutdown, especially if battery charge/runtime remaining is involved labels Apr 16, 2024
@jimklimov jimklimov added this to the 2.8.3 milestone Apr 16, 2024
@jimklimov jimklimov added the ready / code review Author (and CI) consider the PR worthy of human rewievers' time label Apr 17, 2024
@desertwitch
Copy link
Contributor

Hello Jim, thanks for your effort, I've tested all scenarios (OBLBDURATION -1, OBLBDURATION 0, OBLBDURATION 30, OBLBDURATION not set) and can confirm everything is working as it should. Code-review looking good and reasonable too, the increased polling frequency and countdown-style warning messages are an informative and useful touch. Rysz

@jimklimov jimklimov merged commit 0ff61f7 into networkupstools:master Apr 17, 2024
@jimklimov jimklimov deleted the issue-321 branch April 17, 2024 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation enhancement need testing Code looks reasonable, but the feature would better be tested against hardware or OSes ready / code review Author (and CI) consider the PR worthy of human rewievers' time Shutdowns and overrides and battery level triggers Issues and PRs about system shutdown, especially if battery charge/runtime remaining is involved upsmon

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wishlist: add a configurable timeout between seeing "OB LB" and actual shutdown

2 participants