Skip to content

Driver reload - basic support#1906

Merged
jimklimov merged 40 commits intonetworkupstools:masterfrom
jimklimov:driver-reload
Apr 19, 2023
Merged

Driver reload - basic support#1906
jimklimov merged 40 commits intonetworkupstools:masterfrom
jimklimov:driver-reload

Conversation

@jimklimov
Copy link
Member

@jimklimov jimklimov commented Apr 17, 2023

Partially addresses #1903 by adding on-the-fly reloading config concept to NUT drivers (e.g. to change debug_min settings) via SIGHUP, and enhances #1590 by adding systemd Type=notify-reload support (introduced there just recently, in 2023 - systemd/systemd#25916).

Also addresses a few other issues:
Closes: #1907
Closes: #1908

Note that in practical setups with systemd nut-driver-enumerator.service/.path, it may detect change of ups.conf and cause restart of the driver instead of reload. This would be tackled later. As currently presented, the feature is of practical use for developers (running drivers from a build workspace), and on systems managing the driver population without NDE.

CC/FYI : @clepple @aquette @bigon @svarshavchik

…testinfo_reloadable() a public API in case drivers would need to know [networkupstools#1903]
…f the driver must be restarted to apply a value change [networkupstools#1903]
…eport if nut_debug_level_args overrides smaller/unset nut_debug_level_upsconf
@jimklimov jimklimov added enhancement service/daemon start/stop General subject for starting and stopping NUT daemons (drivers, server, monitor); also BG/FG/Debug labels Apr 17, 2023
@jimklimov jimklimov added this to the 2.8.1 milestone Apr 17, 2023
… if changed configs that can not be applied on the fly [networkupstools#1903]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement NUT protocols nut-driver-enumerator (NDE) nut-driver-enumerator (NDE) automates service management integration for NUT driver instances etc. service/daemon start/stop General subject for starting and stopping NUT daemons (drivers, server, monitor); also BG/FG/Debug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

upsd does not honour NUT_STATEPATH envvar if there is a STATEPATH line in upsd.conf Want a way to dump driver state at run-time

1 participant