Browse Source

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 3 years ago
parent
commit
5e1c7677f9
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      chrony/service/running.sls

+ 2
- 0
chrony/service/running.sls View File

- enable: True - enable: True
- require: - require:
- sls: {{ sls_config_file }} - sls: {{ sls_config_file }}
- watch:
- file: chrony-config-file-file-managed

Loading…
Cancel
Save