浏览代码

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 年前
父节点
当前提交
5e1c7677f9
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. +2
    -0
      chrony/service/running.sls

+ 2
- 0
chrony/service/running.sls 查看文件

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

正在加载...
取消
保存