Skip to content

Commit

Permalink
dev env: fix deprecated KillMode=none
Browse files Browse the repository at this point in the history
These units were originally created by "podman generate systemd"
which inserted a KillMode=none directive. That value of KillMode
was deprecated by systemd and will be removed in the future.

This commit updates the units to be aligned with podman's fix for
the issue in containers/podman#8615,
which was to drop KillMode and add TimeoutStopSec.
  • Loading branch information
rohanpm committed Feb 21, 2022
1 parent f611f1e commit 87123a3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/systemd/exodus-gw-db.service
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ ExecStart=/usr/bin/podman run --conmon-pidfile %t/%n-pid --cidfile %t/%n-cid --c
ExecStop=/usr/bin/podman stop --ignore --cidfile %t/%n-cid -t 10
ExecStopPost=/usr/bin/podman rm --ignore -f --cidfile %t/%n-cid
PIDFile=%t/%n-pid
KillMode=none
TimeoutStopSec=60
Type=forking

[Install]
Expand Down
2 changes: 1 addition & 1 deletion scripts/systemd/exodus-gw-localstack.service
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ ExecStart=/usr/bin/podman run --conmon-pidfile %t/%n-pid --cidfile %t/%n-cid --c
ExecStop=/usr/bin/podman stop --ignore --cidfile %t/%n-cid -t 10
ExecStopPost=/usr/bin/podman rm --ignore -f --cidfile %t/%n-cid
PIDFile=%t/%n-pid
KillMode=none
TimeoutStopSec=60
Type=forking

[Install]
Expand Down
2 changes: 1 addition & 1 deletion scripts/systemd/exodus-gw-sidecar.service
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ ExecStart=/usr/bin/podman run --conmon-pidfile %t/%n-pid --cidfile %t/%n-cid --c
ExecStop=/usr/bin/podman stop --ignore --cidfile %t/%n-cid -t 10
ExecStopPost=/usr/bin/podman rm --ignore -f --cidfile %t/%n-cid
PIDFile=%t/%n-pid
KillMode=none
TimeoutStopSec=60
Type=forking

[Install]
Expand Down

0 comments on commit 87123a3

Please sign in to comment.