upssched: Pass NOTIFYTYPE and UPSNAME into timer executions again, now with relevant values#3097
Merged
jimklimov merged 17 commits intonetworkupstools:masterfrom Sep 23, 2025
Merged
Conversation
…th global notify_type [networkupstools#3092] Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…/upssched.conf.txt: let timers pass forward the UPSNAME and NOTIFYTYPE again - now with relevant values; introduce START-TIMER-SHARED [networkupstools#3092, networkupstools#3097] Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
jimklimov
added a commit
to jimklimov/nut
that referenced
this pull request
Sep 22, 2025
…/upssched.conf.txt: let timers pass forward the UPSNAME and NOTIFYTYPE again - now with relevant values; introduce START-TIMER-SHARED [networkupstools#3092, networkupstools#3097] Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
c5e7db5 to
ff8bd17
Compare
…page section Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…onf.txt, NEWS.adoc: introduce support for DEBUG_MIN in upssched.conf [networkupstools#3097] Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…iption (indent them correctly) [networkupstools#3097] Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…ched -l` mode [networkupstools#3097] Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…kupstools#3097] Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…#3097] Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…nnection loss due to a recent bug there [networkupstools#3097] Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
ff8bd17 to
464bcbb
Compare
jimklimov
added a commit
to jimklimov/nut
that referenced
this pull request
Sep 22, 2025
Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
a252343 to
40b21a1
Compare
Member
Author
|
Now dev-tested more thoroughly, added some features (listing of timers) and weeded out some bugs. Did not yet check |
…networkupstools#3097] Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
jimklimov
added a commit
to jimklimov/nut
that referenced
this pull request
Sep 24, 2025
…e logging of self-assigned forked process tags [networkupstools#3097] Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
jimklimov
added a commit
to jimklimov/nut
that referenced
this pull request
Sep 24, 2025
…d process tags [networkupstools#3097] Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
jimklimov
added a commit
to jimklimov/nut
that referenced
this pull request
Sep 24, 2025
…orkupstools#3097] Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
jimklimov
added a commit
to jimklimov/nut
that referenced
this pull request
Sep 24, 2025
…ked process tags [networkupstools#3097] Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
jimklimov
added a commit
to jimklimov/nut
that referenced
this pull request
Sep 24, 2025
…rked process tags [networkupstools#3097] Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
jimklimov
added a commit
to jimklimov/nut
that referenced
this pull request
Sep 24, 2025
….c, drivers/upsdrvctl.c: move proctag_cleanup() into common code and auto-register during first use of setproctag() [networkupstools#3097] Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
jimklimov
added a commit
to jimklimov/nut
that referenced
this pull request
Sep 24, 2025
…getpid()) calls with caching getmyprocname() and getmyprocbasename() [networkupstools#3097] Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
jimklimov
added a commit
to jimklimov/nut
that referenced
this pull request
Sep 24, 2025
… setproctag() after setting up nut_debug_level [networkupstools#3097] Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
jimklimov
added a commit
to jimklimov/nut
that referenced
this pull request
Sep 24, 2025
… around the fork() [networkupstools#3097] Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
jimklimov
added a commit
to jimklimov/nut
that referenced
this pull request
Sep 24, 2025
…, doshutdown(), start_pipe() [networkupstools#3097] Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
jimklimov
added a commit
to jimklimov/nut
that referenced
this pull request
Sep 24, 2025
…SHUTDOWNEXIT is non-trivial [networkupstools#3097] Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
jimklimov
added a commit
to jimklimov/nut
that referenced
this pull request
Sep 25, 2025
…e logging of self-assigned forked process tags [networkupstools#3097] Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
jimklimov
added a commit
to jimklimov/nut
that referenced
this pull request
Sep 25, 2025
…d process tags [networkupstools#3097] Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
jimklimov
added a commit
to jimklimov/nut
that referenced
this pull request
Sep 25, 2025
…orkupstools#3097] Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
jimklimov
added a commit
to jimklimov/nut
that referenced
this pull request
Sep 25, 2025
…ked process tags [networkupstools#3097] Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
jimklimov
added a commit
to jimklimov/nut
that referenced
this pull request
Sep 25, 2025
…rked process tags [networkupstools#3097] Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
jimklimov
added a commit
to jimklimov/nut
that referenced
this pull request
Sep 25, 2025
….c, drivers/upsdrvctl.c: move proctag_cleanup() into common code and auto-register during first use of setproctag() [networkupstools#3097] Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
jimklimov
added a commit
to jimklimov/nut
that referenced
this pull request
Sep 25, 2025
…getpid()) calls with caching getmyprocname() and getmyprocbasename() [networkupstools#3097] Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
jimklimov
added a commit
to jimklimov/nut
that referenced
this pull request
Sep 25, 2025
… setproctag() after setting up nut_debug_level [networkupstools#3097] Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
jimklimov
added a commit
to jimklimov/nut
that referenced
this pull request
Sep 25, 2025
… around the fork() [networkupstools#3097] Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
jimklimov
added a commit
to jimklimov/nut
that referenced
this pull request
Sep 25, 2025
…, doshutdown(), start_pipe() [networkupstools#3097] Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
jimklimov
added a commit
to jimklimov/nut
that referenced
this pull request
Sep 25, 2025
…SHUTDOWNEXIT is non-trivial [networkupstools#3097] Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
jimklimov
added a commit
to jimklimov/nut
that referenced
this pull request
Oct 2, 2025
…ools#3097] Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
jimklimov
added a commit
to jimklimov/nut
that referenced
this pull request
Oct 2, 2025
Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
This was referenced Oct 2, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes: #3092
Follow-up from: PR #2896 and issue #2890
@kennethso168 : can you please check if this PR reasonably answers your woes from that issue? And also if it runs and does not crash/leak, and does utilize envvar values from each call that begins a timer? And that the new feature for
START-TIMER-SHAREDworks and can pass several (comma-separated) values? (So far I only tested that it compiles, and than ran out of time) :)CC @aquette @clepple @NUT-RogetPrice : does this make sense architecturally?