Call startup commands as system triggers.

This helps ensures that we only consider ourselves "up" once all the
startup functions have completed.
This commit is contained in:
Erik Johnston 2019-07-22 15:22:14 +01:00
parent 79f689e6c2
commit 80cfad233e
11 changed files with 29 additions and 11 deletions

View file

@ -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)