summary refs log tree commit diff
path: root/synapse/config/workers.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-03-13 17:33:54 +0000
committerErik Johnston <erik@matrix.org>2019-03-13 17:33:54 +0000
commit72bfaf746d17505df01dfa68b23ee43eb9f54144 (patch)
tree864a9b7b488f279d3b604b75fe6ea291740494ff /synapse/config/workers.py
parentDocument using a certificate with a full chain (#4849) (diff)
downloadsynapse-72bfaf746d17505df01dfa68b23ee43eb9f54144.tar.xz
Allow passing --daemonize to workers
Diffstat (limited to 'synapse/config/workers.py')
-rw-r--r--synapse/config/workers.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/config/workers.py b/synapse/config/workers.py
index 80baf0ce0e..8dc013d0e8 100644
--- a/synapse/config/workers.py
+++ b/synapse/config/workers.py
@@ -57,3 +57,7 @@ class WorkerConfig(Config):
                     bind_addresses.append(bind_address)
                 elif not bind_addresses:
                     bind_addresses.append('')
+
+    def read_arguments(self, args):
+        if args.daemonize is not None:
+            self.worker_daemonize = args.daemonize