feat(synapse): add deployment method virtualenv

This commit is contained in:
2024-09-26 23:13:41 +02:00
parent 7764a1dd9f
commit 609267e099
10 changed files with 152 additions and 5 deletions

View File

@ -0,0 +1,22 @@
[Unit]
Description="{{ synapse_systemd_unit_description }}"
{% if synapse_systemd_unit_after | default([]) | length > 0 %}
After={{ synapse_systemd_unit_after | join(' ') }}
{% endif %}
{% if synapse_systemd_unit_wants | default([]) | length > 0 %}
Wants={{ synapse_systemd_unit_wants | join(' ') }}
{% endif %}
[Service]
Type={{ synapse_systemd_service_type }}
WorkingDirectory={{ synapse_venv_path }}
ExecStart={{ synapse_systemd_service_exec_start }}
User={{ synapse_run_user }}
Group={{ synapse_run_group }}
Restart={{ synapse_systemd_service_restart }}
[Install]
WantedBy={{ synapse_systemd_install_wanted_by }}