Quieter start-up of upsmon, upsd and driver daemons (avoid "scary" fopen() failure messages)#2384
Conversation
…ietly checking killpower flag [networkupstools#2383] Signed-off-by: Jim Klimov <[email protected]>
…evel verbosity toggle [networkupstools#1782] Signed-off-by: Jim Klimov <[email protected]>
…hush initial fopen(pidfile) scary noise [networkupstools#1782] Signed-off-by: Jim Klimov <[email protected]>
…sh initial fopen(pidfile) scary noise [networkupstools#1782] Signed-off-by: Jim Klimov <[email protected]>
…h initial fopen(pidfile) scary noise [networkupstools#1782] Signed-off-by: Jim Klimov <[email protected]>
…ggle to hush initial fopen(pidfile) scary noise [networkupstools#1782] Signed-off-by: Jim Klimov <[email protected]>
…K when checking_flag (for POWERDOWNFLAG) Signed-off-by: Jim Klimov <[email protected]>
|
Would benefit from some more testing, especially with drivers: while On a system not modified with this PR, the |
|
Some testing with a live driver:
The systemd unit is looping in vain restart attempts, and notably dies not kill off the sibling driver started on command line (I'd expect it to try via Unix socket since v2.8.1 changes). Oddly, there is a
UPDATE: Upon review of This also explains why at least the service-wrapped instances of the drivers do not print messages detailing their adventure with the PID file (whether inability to Trying the master-branch build program directly with different options.
|
…"Duplicate driver instance" [networkupstools#2384] Signed-off-by: Jim Klimov <[email protected]>
|
Added some more debug printouts, testing with the build:
|
…peting driver instances) same as when backgrounding [networkupstools#2384] Signed-off-by: Jim Klimov <[email protected]>
|
Updated to handle
|
upsmon, upsd and driver daemonsupsmon, upsd and driver daemons (avoid "scary" fopen() failure messages)
…s of large clauses Signed-off-by: Jim Klimov <[email protected]>
Signed-off-by: Jim Klimov <[email protected]>
|
Hah, there's a printout around exit, it seems (or perhaps only then it is flushed?): |
|
Ok, so this printout is only in the systemd unit, and is due to |
…workupstools#1916 to be solved Signed-off-by: Jim Klimov <[email protected]>
…signal_debug_level verbosity toggle to hush initial fopen(pidfile) scary noise [networkupstools#1782] Signed-off-by: Jim Klimov <[email protected]>
|
Fixed the Note the duplicate messages tagged with PRs are welcome regarding unit settings to avoid NUT syslog when running as a systemd service without an explicitly configured (e.g. external) syslog sink. I'll post an issue but do not intend to address it soon myself. |
…rbosity toggle [networkupstools#1782, networkupstools#2392, networkupstools#2384] Signed-off-by: Jim Klimov <[email protected]>
…ush scary noise from attempts to "driver.exit" a sibling [networkupstools#1782, networkupstools#2392, networkupstools#2384] Signed-off-by: Jim Klimov <[email protected]>
…h "INSTCMD driver.exit" so that we can make that verbose again if dialog started but failed to stop the other driver [networkupstools#2384, networkupstools#2392] Signed-off-by: Jim Klimov <[email protected]>
Follows up from issue #1782 and PR #2383
CC @gdt (is this reasonably quieter?)
Avoid a few lines of text (when running without boosted debug verbosity) here and there, and default to avoid the infamous
fopen /var/state/ups/upsd.pid: No such file or directorysort of messages that regularly raise questions/concerns from new NUT users.upsmon -Kbefore the change (as of Clarify the value of POWERDOWNFLAG inupsmon -hand document that it must be set #2383 (comment)):-Kis involved):upsmon -hand document that it must be set #2383), there is also special wording now for lack ofPOWERDOWNFLAGline inupsmon.conf, so the combined troubleshooting effect is: