summary refs log tree commit diff
path: root/synapse/app/appservice.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-07-23 13:06:53 +0100
committerGitHub <noreply@github.com>2019-07-23 13:06:53 +0100
commit841b12867eba270d7e3725029a238e7be19a8b67 (patch)
tree900caae121144a3565de0d1aabc396c951337052 /synapse/app/appservice.py
parentMerge pull request #5740 from matrix-org/erikj/worker_flakey_tests (diff)
parentAlso update systemd-with-workers contrib examples (diff)
downloadsynapse-841b12867eba270d7e3725029a238e7be19a8b67.tar.xz
Merge pull request #5732 from matrix-org/erikj/sdnotify
Add process hooks to tell systemd our state.
Diffstat (limited to 'synapse/app/appservice.py')
-rw-r--r--synapse/app/appservice.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/app/appservice.py b/synapse/app/appservice.py
index e01f3e5f3b..54bb114dec 100644
--- a/synapse/app/appservice.py
+++ b/synapse/app/appservice.py
@@ -168,7 +168,9 @@ def start(config_options):
     )
 
     ps.setup()
-    reactor.callWhenRunning(_base.start, ps, config.worker_listeners)
+    reactor.addSystemEventTrigger(
+        "before", "startup", _base.start, ps, config.worker_listeners
+    )
 
     _base.start_worker_reactor("synapse-appservice", config)