nut icon indicating copy to clipboard operation
nut copied to clipboard

nutdrvctl

Open aquette opened this issue 2 years ago • 2 comments

  • [ ] simple wrapper around upsdrctl+nur-scanner -U (1rst implem)

  • [ ] or new thing to handle better usb scan + user overrides (for cheap units) and manually added units (2nd implem)?

  • [ ] nutdrvctl systemd unit (.service) should monitor ups.conf and auto reload (for manual additions esp.)

Notes: simply launching the USB driver with udev RUN may cause instabilities (repetitive USB disconnection / reconnection). Using nutdrvctl can safeguard the configuration (inc. addition, update, deletion) and restart according to real updates, not transient events. Also, a nutdrvctl (either this new or the historic upsdrvctl) is needed for starting the manually added drivers

aquette avatar Dec 12 '23 18:12 aquette

Just in case, note there is now also an upsdrvsvcctl which emulates upsdrvctl CLI API as much as possible, to implement handling of systemd/SMF wrapped units for NUT drivers made with nut-driver-enumerator.

Also there was a branch with some nutconf tooling, waiting to get looked at and to integrate into NUT upstream...

jimklimov avatar Dec 12 '23 21:12 jimklimov

Also note NDE as it already reacts to ups.conf changes.

jimklimov avatar Jan 20 '24 15:01 jimklimov