-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This adds a whole bunch of other settings to the --help output:
server:
-D, --daemonize Daemonize the home server
--print-pidfile Print the path to the pidfile just before daemonizing
--manhole PORT Turn on the twisted telnet manhole service on the
given port.
database:
-d SQLITE_DATABASE_PATH, --database-path SQLITE_DATABASE_PATH
The path to a sqlite database to use.
logging:
-v, --verbose The verbosity level. Specify multiple times to
increase verbosity. (Ignored if --log-config is
specified.)
-f LOG_FILE, --log-file LOG_FILE
File to log to. (Ignored if --log-config is
specified.)
--log-config LOG_CONFIG
Python logging config file
-n, --no-redirect-stdio
Do not redirect stdout/stderr to the log
registration:
--enable-registration
Enable registration for new users.
I don't think that any of the others actually work, so I don't think we should do this.
Codecov Report
@@ Coverage Diff @@
## develop #4853 +/- ##
===========================================
- Coverage 75.34% 75.32% -0.02%
===========================================
Files 340 340
Lines 34939 34953 +14
Branches 5722 5727 +5
===========================================
+ Hits 26324 26328 +4
- Misses 7000 7008 +8
- Partials 1615 1617 +2 |
Good point well made |
Okay, this should now correctly handle all the options. There is possibly an argument that we shouldn't support some of them, but we should be consistent across master and workers. The only thing that is possibly slightly odd here is |
@@ -28,7 +28,7 @@ def read_config(self, config): | |||
if self.worker_app == "synapse.app.homeserver": | |||
self.worker_app = None | |||
|
|||
self.worker_listeners = config.get("worker_listeners") | |||
self.worker_listeners = config.get("worker_listeners", []) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this looks like it will fix #4783 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ooh, yes!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
We pass --daemonize on the commandline, which (since at least #4853) overrides whatever the config file, so there is no need for it to be set in the config file.
We pass --daemonize on the commandline, which (since at least #4853) overrides whatever the config file, so there is no need for it to be set in the config file.
We pass --daemonize on the commandline, which (since at least matrix-org#4853) overrides whatever the config file, so there is no need for it to be set in the config file.
This is broadly to make life easier with sytest (c.f. matrix-org/sytest#573)