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.
Primary idea is to use or adapt the existing building blocks:
upsconf_getSection()andcalc_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.