mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 11:06:07 -04:00
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:
parent
79f689e6c2
commit
80cfad233e
11 changed files with 29 additions and 11 deletions
|
@ -224,7 +224,9 @@ def start(config_options):
|
|||
)
|
||||
|
||||
ss.setup()
|
||||
reactor.callWhenRunning(_base.start, ss, config.worker_listeners)
|
||||
reactor.addSystemEventTrigger(
|
||||
"before", "startup", _base.start, ss, config.worker_listeners
|
||||
)
|
||||
|
||||
_base.start_worker_reactor("synapse-user-dir", config)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue