Based on discussion with Ed, this will be changed in a manner so that a new function is introduced, 'configure_binlogs'. That one will be called from install hook, after mysql has been installed, and will restart mysql for the change to take place.
It will also be called from config_changed hook, but it won't restart mysql - it will log a WARNING inside logs to tell administrator/operator to manually restart mysql when appropriate.
Based on discussion with Ed, this will be changed in a manner so that a new function is introduced, 'configure_ binlogs' . That one will be called from install hook, after mysql has been installed, and will restart mysql for the change to take place. operator to manually restart mysql when appropriate.
It will also be called from config_changed hook, but it won't restart mysql - it will log a WARNING inside logs to tell administrator/