Fixed dendrite restart handler bug.
authorLuke Hoersten <luke@hoersten.org>
Sat, 24 Jul 2021 10:29:21 -0500
changeset 169 f4f9b52ede46
parent 168 8e61e4bb714b
child 170 a20a6d03747f
Fixed dendrite restart handler bug.
dendrite/server/handlers/main.yaml
dendrite/server/tasks/main.yaml
--- a/dendrite/server/handlers/main.yaml	Sat Jul 24 08:50:40 2021 -0500
+++ b/dendrite/server/handlers/main.yaml	Sat Jul 24 10:29:21 2021 -0500
@@ -1,5 +1,5 @@
 ---
 
-- name: reload service
+- name: restart service
   become: yes
-  systemd: name="dendrite@{{dendrite_instance}}.service" enabled="yes" daemon_reload="yes"
+  systemd: name="dendrite@{{dendrite_instance}}.service" state="restarted" daemon_reload="yes"
--- a/dendrite/server/tasks/main.yaml	Sat Jul 24 08:50:40 2021 -0500
+++ b/dendrite/server/tasks/main.yaml	Sat Jul 24 10:29:21 2021 -0500
@@ -52,7 +52,7 @@
     owner: "{{dendrite_user}}"
     group: "{{dendrite_user}}"
     mode: "0755"
-  notify: reload service
+  notify: restart service
   loop:
     - "{{dendrite_dir}}"
     - "{{dendrite_dir}}/{{dendrite_instance}}"
@@ -90,7 +90,7 @@
     mode: "0600"
     owner: "{{dendrite_user}}"
     group: "{{dendrite_user}}"
-  notify: reload service
+  notify: restart service
 
 - name: install systemd service
   become: yes