• Roque's avatar
    Automatic restart of services when configuration changes · 6b82838e
    Roque authored
    The main idea is to rename the service wrapper using a hash of the corresponding configuration files. In that way, if the config files are updated, the corresponding script file, section in supervisor.conf and service process will be updated accordingly.
    - the file name in wrapper_path contains a hash of the corresponding config files
    - when config files change, and therefore the hash, the wrapper will be re-created and the corresponding service restarted
    - the config files paths will be a parameter in the corresponding buildout section, if it isn't set there won't be hash-check
    
    /reviewed-on nexedi/slapos!326
    6b82838e
wrapper.py 3.38 KB