Kaynağa Gözat

fix: restart service after config change (#36)

* 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.

* fix: replace require completely with watch to ensure service restart

Co-authored-by: Imran Iqbal <myii@users.noreply.github.com>

Co-authored-by: Imran Iqbal <myii@users.noreply.github.com>
tags/v1.2.5
Severin Schols 3 yıl önce
ebeveyn
işleme
20873d0220
İşleme yapanın e-posta adresine bağlı hesap yok
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. +1
    -1
      chrony/service/running.sls

+ 1
- 1
chrony/service/running.sls Dosyayı Görüntüle

@@ -13,5 +13,5 @@ chrony-service-running-service-running:
service.running:
- name: {{ chrony.service.name }}
- enable: True
- require:
- watch:
- sls: {{ sls_config_file }}

Yükleniyor…
İptal
Kaydet