matterbridge: restart on changes #19

Merged
Georg merged 1 commits from matterbridge-watch into production 2023-02-12 02:42:30 +01:00
Showing only changes of commit b446afcc49 - Show all commits

View File

@ -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 %}