<feed xmlns='http://www.w3.org/2005/Atom'>
<title>packages/net/nut/files, branch master</title>
<subtitle>Mirror of packages feed</subtitle>
<id>https://git-03.infra.openwrt.org/feed/packages/atom?h=master</id>
<link rel='self' href='https://git-03.infra.openwrt.org/feed/packages/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/'/>
<updated>2026-07-19T09:23:51Z</updated>
<entry>
<title>nut: use common log functions instead of direct logger calls</title>
<updated>2026-07-19T09:23:51Z</updated>
<author>
<name>Daniel F. Dickinson</name>
</author>
<published>2026-07-18T22:51:35Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/commit/?id=a9f0e9fae4c33094a51a190ff06f6ea26acfbd92'/>
<id>urn:sha1:a9f0e9fae4c33094a51a190ff06f6ea26acfbd92</id>
<content type='text'>
Where possible prefer the log wrappers to direct logger calls.

Signed-off-by: Daniel F. Dickinson &lt;dfdpublic@wildtechgarden.ca&gt;
</content>
</entry>
<entry>
<title>nut: add process id to log messages</title>
<updated>2026-07-19T09:23:51Z</updated>
<author>
<name>Daniel F. Dickinson</name>
</author>
<published>2026-07-18T22:49:27Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/commit/?id=7a76011672de559cbabceb9672aca59a9ffb4205'/>
<id>urn:sha1:7a76011672de559cbabceb9672aca59a9ffb4205</id>
<content type='text'>
Show the PID beside the syslog_id to aid debugging.

Signed-off-by: Daniel F. Dickinson &lt;dfdpublic@wildtechgarden.ca&gt;
</content>
</entry>
<entry>
<title>nut: manage logging</title>
<updated>2026-07-19T09:23:51Z</updated>
<author>
<name>Daniel F. Dickinson</name>
</author>
<published>2026-07-18T22:24:21Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/commit/?id=95e3d348f8dac1fff73f1e506b0c46ca17adafa4'/>
<id>urn:sha1:95e3d348f8dac1fff73f1e506b0c46ca17adafa4</id>
<content type='text'>
NUT (upstream) logging has changed. With the introduction of
NUT_DEBUG_SYSLOG we can set it to "stderr" and have NUT's messages
go to stderr only.

This avoid most duplicate messages when procd sends stderr to syslog.

The reverse (syslog only from NUT) is not a current configuration
option. See the section for NUT_DEBUG_SYSLOG at
https://networkupstools.org/docs/man/nut.conf.html#_directives

This is needed because we use '-FF' so that the daemons remain in the
foreground, which is required for procd to manage them. When using
'-FF' logging behaves differently in NUT than when backgrounded.

Unfortunately, there is still some work to be done upstream to
completely eliminate duplicate messages, so some message continue to
appear twice, though not neccessarily with the same facility.priority.

See also
https://github.com/jimklimov/nut/blob/0c3eed09b89cce1e5c0c65ca03d05b4612371cb8/UPGRADING.adoc#changes-from-282-to-283
and
https://github.com/openwrt/packages/pull/29896#issuecomment-5012737643

Conversely, the log messages the initscripts emit are now configured to
emit only to syslog and not to stderr. This avoids duplicates messages
caused by procd's automatic (not configurable) behaviour of sending
the initscript's stderr to syslog, while preserving the syslogid,
facility and priority we want.

Signed-off-by: Daniel F. Dickinson &lt;dfdpublic@wildtechgarden.ca&gt;
</content>
</entry>
<entry>
<title>nut: split interface_triggers function</title>
<updated>2026-07-15T07:34:39Z</updated>
<author>
<name>Daniel F. Dickinson</name>
</author>
<published>2026-07-07T02:08:01Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/commit/?id=4638c42055946ac424d208f6e92aadc9eb8dd884'/>
<id>urn:sha1:4638c42055946ac424d208f6e92aadc9eb8dd884</id>
<content type='text'>
Using add_interface_triggers and check_interface_up is a
better separation of concerns and the code has little in
common (no duplication of code concerns).

While we are at it make both nut-monitor and nut-server failure of
add_interface_triggers non-fatal with a logged error message.

Signed-off-by: Daniel F. Dickinson &lt;dfdpublic@wildtechgarden.ca&gt;
</content>
</entry>
<entry>
<title>nut: add more common validators and add more validation</title>
<updated>2026-07-15T07:34:39Z</updated>
<author>
<name>Daniel F. Dickinson</name>
</author>
<published>2026-07-06T23:00:39Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/commit/?id=e3f051cefc5c43f97f28d32976a69622bf8cd98b'/>
<id>urn:sha1:e3f051cefc5c43f97f28d32976a69622bf8cd98b</id>
<content type='text'>
Factor out some common validation code into some validator functions,
and add more UCI config validation.

Signed-off-by: Daniel F. Dickinson &lt;dfdpublic@wildtechgarden.ca&gt;
</content>
</entry>
<entry>
<title>nut: simplify/improve consistency for RUNAS and STATEPATH</title>
<updated>2026-07-15T07:34:39Z</updated>
<author>
<name>Daniel F. Dickinson</name>
</author>
<published>2026-07-06T22:23:52Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/commit/?id=0ebfb5b3e00c413ad001198d7d2f01675757f7ff'/>
<id>urn:sha1:0ebfb5b3e00c413ad001198d7d2f01675757f7ff</id>
<content type='text'>
We claimed we only supported a single upsd section named 'upsd' and a
single uspmon section named 'upsmon', but when determining RUNAS
and STATEPATH we were using overly-complex functions as we were
attempting to support multiple upsd and upsmon sections.

Simplify the logic by adhering to our stated support.

While were are at it we make RUNAS handling more consistent between
nut-server (upsd) and nut-monitor (upsmon).

We no longer try to limp along if RUNAS is not set by find_runas; to do
this properly would require over-complicated logic when setting file
and directory permissions and ownership.

Signed-off-by: Daniel F. Dickinson &lt;dfdpublic@wildtechgarden.ca&gt;
</content>
</entry>
<entry>
<title>nut: minor fixes found via automated code review</title>
<updated>2026-07-15T07:34:39Z</updated>
<author>
<name>Daniel F. Dickinson</name>
</author>
<published>2026-07-03T21:05:14Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/commit/?id=bb320e47d786e73270820cf2ed2db03b9b295a3c'/>
<id>urn:sha1:bb320e47d786e73270820cf2ed2db03b9b295a3c</id>
<content type='text'>
* Fixes a missing word in a comment
* Fixes inconsistent indentation in sample configurations
* Drops redundant default assignment in find_statepath()

Signed-off-by: Daniel F. Dickinson &lt;dfdpublic@wildtechgarden.ca&gt;
</content>
</entry>
<entry>
<title>nut: do not trigger on interface activity by default</title>
<updated>2026-07-15T07:34:39Z</updated>
<author>
<name>Daniel F. Dickinson</name>
</author>
<published>2026-07-02T22:50:40Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/commit/?id=0bd44d9b9de2d79ca685d715cddcf1f82ff75738'/>
<id>urn:sha1:0bd44d9b9de2d79ca685d715cddcf1f82ff75738</id>
<content type='text'>
The defaults were triggiering on any activity on the network, which
caused excessive restarts. So default to no interface trigger, with
'all' (or specific interfaces) as an option.

See https://github.com/openwrt/packages/pull/29607#discussion_r3463553192

Signed-off-by: Daniel F. Dickinson &lt;dfdpublic@wildtechgarden.ca&gt;
</content>
</entry>
<entry>
<title>nut: fix hard-coded trigger scripts for interface triggers</title>
<updated>2026-07-15T07:34:39Z</updated>
<author>
<name>Daniel F. Dickinson</name>
</author>
<published>2026-07-02T22:35:06Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/commit/?id=ce009de85f3946392138fdcb443198456afa6dbc'/>
<id>urn:sha1:ce009de85f3946392138fdcb443198456afa6dbc</id>
<content type='text'>
The trigger script and instance to reload should depend on which
initscript is calling interface_triggers. It wasn't, so we fix that.

See https://github.com/openwrt/packages/pull/29607#discussion_r3463544231

Signed-off-by: Daniel F. Dickinson &lt;dfdpublic@wildtechgarden.ca&gt;
</content>
</entry>
<entry>
<title>nut: remove driverpath configuration</title>
<updated>2026-07-15T07:34:39Z</updated>
<author>
<name>Daniel F. Dickinson</name>
</author>
<published>2026-07-02T22:20:40Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/commit/?id=6498ed4a9388697443b498a6459a94967009ae19'/>
<id>urn:sha1:6498ed4a9388697443b498a6459a94967009ae19</id>
<content type='text'>
While driverpath is could in theory be configurable, this was not implemented
in the OpenWrt NUT package, and there is not need for it. Therefore remove the
sample configuration for it, and setting that configuration in the upsd.conf file.

See https://github.com/openwrt/packages/pull/29607#discussion_r3463526037

Signed-off-by: Daniel F. Dickinson &lt;dfdpublic@wildtechgarden.ca&gt;
</content>
</entry>
</feed>
