]> git.99rst.org Git - openwrt-packages.git/commit
nut: prevent service thrashing on boot or hotplug
authorDaniel F. Dickinson <redacted>
Thu, 27 Aug 2026 10:41:50 +0000 (06:41 -0400)
committerJosef Schlehofer <redacted>
Thu, 10 Sep 2026 08:22:36 +0000 (10:22 +0200)
commitca828ffc4fb971711616bdce2d31cd6b5e6b4cad
tree1b792a379e73dc710931682db69d9e0dee68819b
parent5bdf89410255c73bfedfaf1ccaf83f6644a7c818
nut: prevent service thrashing on boot or hotplug

On boot, hotplug events were causing excessive start and stop action
for the upsd daemon and driver daemons. We fix that with two primary
actions:
  1. Don't restart service daemons on hotplug until after first boot
     has completed.
  2. Use more robust handling of procd instance starts by ensuring
     that the first start starts the nut-server service and all
     others add to the nut-server service (rather than replacing it).

Ignore hotplug events without a DEVNAME.

In addition clean up some logging.

In the process, this fixes #30375 "hotplugging for setting usb access
right[s] doesn't work anymore"

Closes: #30375
Signed-off-by: Daniel F. Dickinson <redacted>
net/nut/Makefile
net/nut/files/libhid-ups.hotplug
net/nut/files/nut-serial.hotplug
net/nut/files/nut-server.init
net/nut/files/nut-service.sh.functions
git clone https://git.99rst.org/PROJECT