Skip to content

Commit

Permalink
Fix matrix-postgres stopping for consistency with other services
Browse files Browse the repository at this point in the history
This probably got lost somehow in all the work that happened in
#456
  • Loading branch information
spantaleev committed Feb 19, 2021
1 parent 9f91eaa commit 1dbdfee
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ DefaultDependencies=no
[Service]
Type=simple
Environment="HOME={{ matrix_systemd_unit_home_path }}"
ExecStartPre=-{{ matrix_host_command_docker }} stop matrix-postgres
ExecStartPre=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} kill matrix-postgres 2>/dev/null'
ExecStartPre=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} rm matrix-postgres 2>/dev/null'

ExecStart={{ matrix_host_command_docker }} run --rm --name matrix-postgres \
Expand All @@ -34,7 +34,7 @@ ExecStart={{ matrix_host_command_docker }} run --rm --name matrix-postgres \
{{ arg }} \
{% endfor %}

ExecStop=-{{ matrix_host_command_docker }} stop matrix-postgres
ExecStop=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} kill matrix-postgres 2>/dev/null'
ExecStop=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} rm matrix-postgres 2>/dev/null'
Restart=always
RestartSec=30
Expand Down

0 comments on commit 1dbdfee

Please sign in to comment.