From b446afcc4968de30e0cf79ed82b64c3d4a431d07 Mon Sep 17 00:00:00 2001 From: Georg Pfuetzenreuter Date: Sun, 12 Feb 2023 02:39:47 +0100 Subject: matterbridge: restart on changes Matterbridge does detect file changes, but seems to only apply them on a service restart. Signed-off-by: Georg Pfuetzenreuter --- salt/profile/matterbridge/init.sls | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/salt/profile/matterbridge/init.sls b/salt/profile/matterbridge/init.sls index a68de46..c90225b 100644 --- a/salt/profile/matterbridge/init.sls +++ b/salt/profile/matterbridge/init.sls @@ -34,6 +34,8 @@ matterbridge_files: general: {{ instances[instance]['general'] | default({}) }} accounts: {{ instances[instance]['accounts'] }} gateways: {{ instances[instance]['gateways'] }} + - watch_in: + - service: matterbridge_{{ instance }}_service {%- endfor %} {%- for instance in instances %} @@ -52,6 +54,8 @@ matterbridge_{{ instance }}_service: service.running: - name: matterbridge@{{ instance }}.service - enable: True + - watch: + - file: /etc/matterbridge/{{ instance }}.toml {%- endfor %} {%- endif %} -- cgit v1.2.3