Skip to content

TODO: Support detection of changed device sections in nut-driver-enumerator.sh.in #591

@jimklimov

Description

@jimklimov

Primary idea is to use or adapt the existing building blocks: upsconf_getSection() and calc_md5() and service instance custom configuration attributes, to store a reproducible hash of previously known configuration for a section. IFF the section has changed since last run of the script, trigger restart of the service instance wrapping its driver and update the saved hash.

This is a separate effort to develop and thoroughly test on different platforms than just getting the basic feature into mainstream, so was not part of initial PR #330 that added the service frameworks integration. As of initial merge, it only supported detection of newly added or removed sections as a whole.

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions