<feed xmlns='http://www.w3.org/2005/Atom'>
<title>packages/net/nut/files/nutshutdown, branch master</title>
<subtitle>Mirror of packages feed</subtitle>
<id>https://git.openwrt.org/feed/packages/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/feed/packages/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/'/>
<updated>2026-07-19T09:23:51Z</updated>
<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.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: rewrite scripts</title>
<updated>2026-07-02T04:43:08Z</updated>
<author>
<name>Daniel F. Dickinson</name>
</author>
<published>2026-05-08T01:32:59Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=5e6b6943f3137bc31a818aa82fb70f41ddc5e0ca'/>
<id>urn:sha1:5e6b6943f3137bc31a818aa82fb70f41ddc5e0ca</id>
<content type='text'>
The scripts were a mess. Attempting even a simple update caused many
Copilot complaints. So we rewrite the scripts to be cleaner and
resolve the issues found by automated code review (such as Copilot).
Made extensive use of Qwen3.6-27B, LATE, and llama.ccp for local AI
code reviews during development.

In the process we deduplicate the nut-server and nut-monitor
initscripts and split them into several files, for easier automatic
and human review.

Incorporates and supersedes: #28308
Should supersede #21014

Closes: #28298

Signed-off-by: Daniel F. Dickinson &lt;dfdpublic@wildtechgarden.ca&gt;
</content>
</entry>
<entry>
<title>nut: move drivers to libexec</title>
<updated>2026-07-02T04:43:08Z</updated>
<author>
<name>Daniel F. Dickinson</name>
</author>
<published>2026-05-10T02:33:24Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=b0b686fe240209be36611220db097aed65e74846'/>
<id>urn:sha1:b0b686fe240209be36611220db097aed65e74846</id>
<content type='text'>
They are executables not libraries, so move the UPS drivers
to /usr/libexec/nut.

Signed-off-by: Daniel F. Dickinson &lt;dfdpublic@wildtechgarden.ca&gt;
</content>
</entry>
<entry>
<title>nut: fix typo in nutshutdown script</title>
<updated>2021-04-04T01:38:13Z</updated>
<author>
<name>Sven Roederer</name>
</author>
<published>2021-04-03T20:00:31Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=f25f49a8b7c5a038f8a50dbb74e10db19f26d15a'/>
<id>urn:sha1:f25f49a8b7c5a038f8a50dbb74e10db19f26d15a</id>
<content type='text'>
Even it's only cosmetic and should not affect the function of regular system,
fix the name of the IPKG_INSTROOT variable.
Typo was added long ago with 8400c9a6ec799.

Signed-off-by: Sven Roederer &lt;devel-sven@geroedel.de&gt;
</content>
</entry>
<entry>
<title>nut: Actually do FSD when required</title>
<updated>2019-04-28T20:44:15Z</updated>
<author>
<name>Daniel F. Dickinson</name>
</author>
<published>2019-04-28T20:10:27Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=c25b7510415ff2327341e9dc4fcc1817a7949b8e'/>
<id>urn:sha1:c25b7510415ff2327341e9dc4fcc1817a7949b8e</id>
<content type='text'>
The code was all there but the call do the function containing it was missing,
so call the function so that forced (UPS) shutdown occurs on a battery critical
or manually requested FSD situation.

Signed-off-by: Daniel F. Dickinson &lt;cshored@thecshore.com&gt;
</content>
</entry>
<entry>
<title>nut: initscripts hotplug: Fix many small semantic issues</title>
<updated>2019-01-20T17:16:28Z</updated>
<author>
<name>Daniel F. Dickinson</name>
</author>
<published>2019-01-16T12:09:13Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=d7db15459f222ef1b5878c543a01a78fb55a73a7'/>
<id>urn:sha1:d7db15459f222ef1b5878c543a01a78fb55a73a7</id>
<content type='text'>
Small but important tweaks to fix the operation of the nut initscripts
and hotplug scripts.  All hail shellcheck and proofreading and
dogfooding.

Signed-off-by: Daniel F. Dickinson &lt;cshored@thecshore.com&gt;
</content>
</entry>
<entry>
<title>nut: Prevent FSD when not specifically requested</title>
<updated>2019-01-08T09:07:01Z</updated>
<author>
<name>Daniel F. Dickinson</name>
</author>
<published>2019-01-06T23:32:52Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=cb06f0250425d20b9d600b0a6e9002a1c5bc5a75'/>
<id>urn:sha1:cb06f0250425d20b9d600b0a6e9002a1c5bc5a75</id>
<content type='text'>
Under certain circumstances nutshutdown was causing a forced
shutdown of the UPS even though killpower was not indicated.
Prevent that.  Also clarify the logic for powering off server
by avoiding &amp;&amp; || chains.

Signed-off-by: Daniel F. Dickinson &lt;cshored@thecshore.com&gt;
</content>
</entry>
<entry>
<title>nut: Make FSD really work</title>
<updated>2018-08-29T04:15:14Z</updated>
<author>
<name>Daniel F. Dickinson</name>
</author>
<published>2018-08-27T20:33:25Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=918a62f91940a3e4b11a009442d8f085bf26075a'/>
<id>urn:sha1:918a62f91940a3e4b11a009442d8f085bf26075a</id>
<content type='text'>
Forced shutdown of the UPS was not actually happening before
due to lack of specific commands doing the shutdown.  This
(and the nut-driver initscript) fix that.

Signed-off-by: Daniel F. Dickinson &lt;cshored@thecshore.com&gt;
</content>
</entry>
</feed>
