2022-06-30 14:58:12 +03:00
|
|
|
{% if use_forking_launcher %}
|
|
|
|
[program:synapse_fork]
|
2024-08-15 15:22:50 +03:00
|
|
|
command=/usr/local/bin/prefix-log /root/synapse/env/bin/python -m synapse.app.complement_fork_starter
|
2022-06-30 14:58:12 +03:00
|
|
|
{{ main_config_path }}
|
|
|
|
synapse.app.homeserver
|
|
|
|
--config-path="{{ main_config_path }}"
|
2024-08-15 15:22:50 +03:00
|
|
|
--config-path=/root/synapse/config/workers/shared.yaml
|
2022-06-30 14:58:12 +03:00
|
|
|
{%- for worker in workers %}
|
|
|
|
-- {{ worker.app }}
|
|
|
|
--config-path="{{ main_config_path }}"
|
2024-08-15 15:22:50 +03:00
|
|
|
--config-path=/root/synapse/config/workers/shared.yaml
|
|
|
|
--config-path=/root/synapse/config/workers/{{ worker.name }}.yaml
|
2022-06-30 14:58:12 +03:00
|
|
|
{%- endfor %}
|
|
|
|
autorestart=unexpected
|
|
|
|
exitcodes=0
|
|
|
|
|
|
|
|
{% else %}
|
2022-06-27 13:43:20 +03:00
|
|
|
[program:synapse_main]
|
2024-08-15 15:22:50 +03:00
|
|
|
command=/usr/local/bin/prefix-log /root/synapse/env/bin/python -m synapse.app.homeserver
|
2022-06-27 13:43:20 +03:00
|
|
|
--config-path="{{ main_config_path }}"
|
2024-08-15 15:22:50 +03:00
|
|
|
--config-path=/root/synapse/config/workers/shared.yaml
|
2022-06-27 13:43:20 +03:00
|
|
|
priority=10
|
|
|
|
autorestart=unexpected
|
|
|
|
exitcodes=0
|
|
|
|
|
|
|
|
|
2022-06-30 14:58:12 +03:00
|
|
|
{% for worker in workers %}
|
2022-06-27 13:43:20 +03:00
|
|
|
[program:synapse_{{ worker.name }}]
|
2024-08-15 15:22:50 +03:00
|
|
|
command=/usr/local/bin/prefix-log /root/synapse/env/bin/python -m {{ worker.app }}
|
2022-06-27 13:43:20 +03:00
|
|
|
--config-path="{{ main_config_path }}"
|
2024-08-15 15:22:50 +03:00
|
|
|
--config-path=/root/synapse/config/workers/shared.yaml
|
|
|
|
--config-path=/root/synapse/config/workers/{{ worker.name }}.yaml
|
2022-06-27 13:43:20 +03:00
|
|
|
autorestart=unexpected
|
|
|
|
priority=500
|
|
|
|
exitcodes=0
|
|
|
|
|
2022-06-30 14:58:12 +03:00
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|