summary refs log tree commit diff
path: root/synctl
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2021-05-27 17:11:57 +0100
committerErik Johnston <erik@matrix.org>2021-05-27 17:11:57 +0100
commitd2fcfef6797d52f2ef874fbb367b3a997b4e47b2 (patch)
tree23fae3c371d70493b5fb8691290942420c53e598 /synctl
parentMerge remote-tracking branch 'origin/develop' into matrix-org-hotfixes (diff)
parentLimit the number of events sent over replication when persisting events. (#10... (diff)
downloadsynapse-d2fcfef6797d52f2ef874fbb367b3a997b4e47b2.tar.xz
Merge remote-tracking branch 'origin/develop' into matrix-org-hotfixes
Diffstat (limited to 'synctl')
-rwxr-xr-xsynctl12
1 files changed, 8 insertions, 4 deletions
diff --git a/synctl b/synctl

index 6ce19918d2..90559ded62 100755 --- a/synctl +++ b/synctl
@@ -97,11 +97,15 @@ def start(pidfile: str, app: str, config_files: Iterable[str], daemonize: bool) write("started %s(%s)" % (app, ",".join(config_files)), colour=GREEN) return True except subprocess.CalledProcessError as e: - write( - "error starting %s(%s) (exit code: %d); see above for logs" - % (app, ",".join(config_files), e.returncode), - colour=RED, + err = "%s(%s) failed to start (exit code: %d). Check the Synapse logfile" % ( + app, + ",".join(config_files), + e.returncode, ) + if daemonize: + err += ", or run synctl with --no-daemonize" + err += "." + write(err, colour=RED, stream=sys.stderr) return False