summary refs log tree commit diff
path: root/synctl (follow)
Commit message (Collapse)AuthorAgeFilesLines
* synctl: print warning if synctl_cache_factor is set in config (#11865)lukasdenk2022-02-281-0/+8
| | | Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
* Avoid waiting for zombie processes in `synctl stop` (#11490)Sean Quah2021-12-021-3/+16
|
* synctl stop: wait for processes to exit (#11459)Richard van der Hoff2021-11-301-25/+14
| | | | | If you're trying to shut down Synapse, it's rather handy if it *actually* shuts down before you move on.
* Improve the error message printed by synctl when synapse fails to start. ↵Richard van der Hoff2021-05-271-4/+8
| | | | (#10059)
* Fix --no-daemonize for synctl with workers (#9995)Richard van der Hoff2021-05-241-70/+32
|
* Remove redundant "coding: utf-8" lines (#9786)Jonathan de Jong2021-04-141-1/+0
| | | | | | | Part of #9744 Removes all redundant `# -*- coding: utf-8 -*-` lines from files, as python 3 automatically reads source code as utf-8 now. `Signed-off-by: Jonathan de Jong <jonathan@automatia.nl>`
* Allow bytecode again (#9502)Jonathan de Jong2021-02-261-2/+1
| | | | | | | In #75, bytecode was disabled (from a bit of FUD back in `python<2.4` days, according to dev chat), I think it's safe enough to enable it again. Added in `__pycache__/` and `.pyc`/`.pyd` to `.gitignore`, to extra-insure compiled files don't get committed. `Signed-off-by: Jonathan de Jong <jonathan@automatia.nl>`
* Fix synctl and duplicate worker spawning (#8798)Waylon Cude2020-11-231-0/+7
| | | | | | | | | Synctl did not check if a worker thread was already running when using `synctl start` and would naively start a fresh copy. This would sometimes lead to cases where many duplicate copies of a single worker would run. This fix adds a pid check when starting worker threads and synctl will now refuse to start individual workers if they're already running.
* Allow YAML config file to contain None (#7779)Alex Kotov2020-07-031-1/+2
| | | | | Useful when config file is fully commented Signed-off-by: Alex Kotov <kotovalexarian@gmail.com>
* Replace all remaining six usage with native Python 3 equivalents (#7704)Dagfinn Ilmari Mannsåker2020-06-161-4/+2
|
* `synctl restart` should start synapse if it wasn't running (#7624)Richard van der Hoff2020-06-031-1/+1
|
* synctl warns when no process is stopped and avoids start (#6598)Romain Bouyé2020-05-191-3/+28
| | | | | | * If an error occurs when stopping a process synctl now logs a warning. * During a restart, synctl will avoid attempting to start Synapse if an error occurs during stopping Synapse.
* Remove redundant checks on `daemonize` from synctl (#7233)Richard van der Hoff2020-04-081-9/+11
| | | | | 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.
* Give appropriate exit codes when synctl fails (#5992)Jorik Schellekens2019-09-181-4/+39
|
* Let synctl use a config directory. (#5904)Jorik Schellekens2019-08-281-3/+10
| | | * Let synctl use a config directory.
* Fix --no-daemonize flag for synctlErik Johnston2019-07-021-6/+6
|
* Accidentally reversed pep8 fixed before, fixed nowsohamg2019-06-101-1/+1
|
* Edited description to note that the arg will not work with daemonize set in ↵sohamg2019-06-101-2/+3
| | | | the config.
* Resolved pep8 extra spacing issuesohamg2019-06-101-1/+1
|
* - Fix https://github.com/matrix-org/synapse/issues/4130sohamg2019-06-101-3/+15
| | | | | | - Add parser argument "--no-daemonize" Signed-off-by: sohamg <sohamg2@gmail.com>
* Use yaml safe_loadErik Johnston2019-03-221-2/+2
|
* Fix command hint to generate a config file (#4353)Jason Robinson2019-01-071-1/+3
| | | | | | | | | | | | | | | | | * Fix command hint to generate a config file When trying to start Synapse without a config file, it will complain and give a hint towards what command to run. This hinted command is missing the "report_stats" parameter, which is required with either yes or no value. Add this to the command. Not an ideal situation but makes the given command work without the user getting another error, even though it might be unclear what "report_stats" represents. Signed-off-by: Jason Robinson <jasonr@matrix.org>
* Make scripts/ and scripts-dev/ pass pyflakes (and the rest of the codebase ↵Amber Brown2018-10-201-44/+36
| | | | on py3) (#4068)
* Use the right python when starting workersRichard van der Hoff2018-10-181-1/+2
| | | | | We should use the same python to start the workers as we do for the main synapse (ie, the same one used to run synctl.)
* Assume isatty is always defined, and catch AttributeError. Also don't bother ↵Erik Johnston2018-10-171-2/+6
| | | | checking colour==Normal
* Only colourise synctl output when attached to ttyErik Johnston2018-10-171-1/+6
|
* Make workers work on Py3 (#4027)Amber Brown2018-10-131-1/+1
|
* Merge branch 'develop' into rav/hacky_cache_factor_fixRichard van der Hoff2018-09-261-1/+294
|\
| * Move synctl into top dir to avoid a symlinkRichard van der Hoff2018-09-251-1/+284
|/ | | | | | symlinks apparently break setuptools on python3 and alpine (https://bugs.python.org/issue31940), so let's stop using a symlink and just use the file directly.
* merge in msg.__room_member usage to new message display templateMatthew Hodgson2014-11-151-0/+1
|
* SYN-138: Rewrite synctl in python and include it in the python distributionMark Haines2014-11-131-35/+0
|
* Fix ncorrect ports in documentation and add notes on how generate-config ↵David Baker2014-10-021-1/+1
| | | | | | also generates certs bound to whatever hostname you give with --generate-config. SYN-87 #resolved
* Re-apply a0b1b34c71e46304f7024f0570db92f4577303b5 to master (fixing synctl)David Baker2014-10-021-2/+2
|
* Add slightly helpful advice on how to generate config if you don'y already ↵Erik Johnston2014-09-081-0/+1
| | | | have one
* Don't autogen config in synctl for the same reasons we don't turn of ↵Erik Johnston2014-09-081-6/+2
| | | | | | --generate-config by default on the homeserver - it is liable to confuse people who have moved the config file or have chosen a non standard location. Also, don't override log file location.
* make synctl default to homesever.logMatthew Hodgson2014-09-031-3/+3
|
* Added a simple start/stop control scriptPaul "LeoNerd" Evans2014-09-031-0/+38