mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-19 00:24:19 -05:00
3c5549e74a
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
31 lines
908 B
Django/Jinja
31 lines
908 B
Django/Jinja
[program:synapse_main]
|
|
command=/usr/local/bin/prefix-log /usr/local/bin/python -m synapse.app.homeserver
|
|
--config-path="{{ main_config_path }}"
|
|
--config-path=/conf/workers/shared.yaml
|
|
priority=10
|
|
# Log startup failures to supervisord's stdout/err
|
|
# Regular synapse logs will still go in the configured data directory
|
|
stdout_logfile=/dev/stdout
|
|
stdout_logfile_maxbytes=0
|
|
stderr_logfile=/dev/stderr
|
|
stderr_logfile_maxbytes=0
|
|
autorestart=unexpected
|
|
exitcodes=0
|
|
|
|
|
|
{% for worker in workers %}
|
|
[program:synapse_{{ worker.name }}]
|
|
command=/usr/local/bin/prefix-log /usr/local/bin/python -m {{ worker.app }}
|
|
--config-path="{{ main_config_path }}"
|
|
--config-path=/conf/workers/shared.yaml
|
|
--config-path=/conf/workers/{{ worker.name }}.yaml
|
|
autorestart=unexpected
|
|
priority=500
|
|
exitcodes=0
|
|
stdout_logfile=/dev/stdout
|
|
stdout_logfile_maxbytes=0
|
|
stderr_logfile=/dev/stderr
|
|
stderr_logfile_maxbytes=0
|
|
|
|
{% endfor %}
|