File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
roles/matrix-postgres/templates/systemd Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ DefaultDependencies=no
88[Service]
99Type=simple
1010Environment="HOME={{ matrix_systemd_unit_home_path }}"
11- ExecStartPre=-{{ matrix_host_command_docker }} stop matrix-postgres
11+ ExecStartPre=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} kill matrix-postgres 2>/dev/null'
1212ExecStartPre=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} rm matrix-postgres 2>/dev/null'
1313
1414ExecStart={{ matrix_host_command_docker }} run --rm --name matrix-postgres \
@@ -34,7 +34,7 @@ ExecStart={{ matrix_host_command_docker }} run --rm --name matrix-postgres \
3434 {{ arg }} \
3535 {% endfor %}
3636
37- ExecStop=-{{ matrix_host_command_docker }} stop matrix-postgres
37+ ExecStop=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} kill matrix-postgres 2>/dev/null'
3838ExecStop=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} rm matrix-postgres 2>/dev/null'
3939Restart=always
4040RestartSec=30
You can’t perform that action at this time.
0 commit comments