Explorar el Código

fix: restart service after config change

When chrony was already installed, the service currently does not get
restarted when the config file is changed. I added a "watch" option to
the service.running state to ensure it gets a restart when we adapt the
configuration.
pull/36/head
Severin Schols hace 3 años
padre
commit
5e1c7677f9
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. +2
    -0
      chrony/service/running.sls

+ 2
- 0
chrony/service/running.sls Ver fichero

@@ -15,3 +15,5 @@ chrony-service-running-service-running:
- enable: True
- require:
- sls: {{ sls_config_file }}
- watch:
- file: chrony-config-file-file-managed

Cargando…
Cancelar
Guardar