add extras role
This commit is contained in:
20
roles/extras/templates/matrix-extra.service
Normal file
20
roles/extras/templates/matrix-extra.service
Normal file
@@ -0,0 +1,20 @@
|
||||
# {{ ansible_managed }}
|
||||
|
||||
[Unit]
|
||||
Description={{ matrix_extra }}
|
||||
After=matrix-synapse.service
|
||||
PartOf=matrix.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User={{ matrix_extra }}
|
||||
WorkingDirectory={{ matrix_extra_workdir }}
|
||||
{% if matrix_extra_wait_before_start %}
|
||||
ExecStartPre=/bin/sleep 30
|
||||
{% endif %}
|
||||
ExecStart={{ exec }}
|
||||
Restart=always
|
||||
RestartSec=3
|
||||
|
||||
[Install]
|
||||
WantedBy=matrix.target
|
||||
Reference in New Issue
Block a user