Repository navigation
Introduce a rootpidpath() method instead of direct use of PIDPATH macro (e.g. in upsmon) - #2407
Merged
Merged
Conversation
…ternal testing (notably with DEBUG_SLEEP and test daemons left running) Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
… customize power supply count (served by MONITOR, required by MINSUPPLIES) Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…record its attempts into a "$NUT_STATEPATH/upsmon.sd.log" file Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…ath(), dflt_statepath() on the first call Speed up work upon subsequent calls, and be sure to return the same value consistently. Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…e-runs of the script Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…" settings as comments Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…ecfg_*|is* Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…neratecfg_*|is* Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…neratecfg_*|is* Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
Member
Author
|
Curiously, the test suggests a parser error about host and port handling in While upsd knows about it: Also: |
…PING value for nut_sendsignal_debug_level [networkupstools#1782] Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
Member
Author
|
Quicker reproduction cycle: Active configs: |
…e the expanded NUT_STATEPATH value Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
Member
Author
|
Argh, the |
Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…DOWNFLAG setting [networkupstools#321] Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…dbox_start_upsmon_master() Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
Member
Author
|
Fallout in C++ code builds in mingw/linux probably due to the added Native POSIX and Windows builds seem happy so far. |
Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
Challado
pushed a commit
to Challado/nut
that referenced
this pull request
Oct 14, 2026
Introduce a `rootpidpath()` method instead of direct use of `PIDPATH` macro (e.g. in `upsmon`) SVN-Git-Bridge: nut-3e341d2d9c-3fc79f1e8124 d865f3e Bridge-Author: Jim Klimov <jimklimov+nut@gmail.com> Bridge-Author-Date: 2024-04-18T08:51:23+02:00 Bridge-Committer: GitHub <noreply@github.com> Bridge-Committer-Date: 2024-04-18T08:51:23+02:00 From: Jim Klimov <jimklimov+nut@gmail.com> git-svn-id: file:///mnt/export/subversion/nut/trunk@3986 5f2f2009-99cd-4845-9af7-39d0aa6e3748
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.
Also update the NIT script regarding
upsmon.confgeneration and friendliness to run NUT programs against the prepared testbed, and improve the ability to generate variants of upsmon configuration and to launch the daemon in tests (no particular tests added so far).And bump (C) on C++ code, due to a few changes there and noticing some staleness in the file headings.
Also introduced value caching for this and other path-getting methods - so that subsequent calls return the same value quickly (less work, more reproducibility. Checked that no NUT C programs use
setenvalong the way (at all, and notably not for path-related envvars in particular), which could potentially impact this logic change.Regarding the
rootpidpath()- an envvar is now honoured:Before this change,
upsmoninsisted onfopen /run/upsmon.pidper (lack of) config fromci_build.shAs of this posting, manual testing with NIT involved: