mirrorlist: use KillMode=none
If stopping of the mirrorlist container fails, systemd usually kills all processes in the same control group which means that the usual Podman cleanup steps will not be able to run. Setting KillMode=none gives Podman a chance to correctly remove the container. Signed-off-by: Adrian Reber <adrian@lisas.de>
This commit is contained in:
parent
49f68f14d5
commit
cd22a1b38c
1 changed files with 3 additions and 2 deletions
|
@ -3,7 +3,7 @@ Description=Mirrorlist Container {{ item }}
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
User=mirrormanager
|
User=mirrormanager
|
||||||
ExecStartPre=-/usr/bin/podman stop %n
|
ExecStartPre=-/usr/bin/podman stop -t 1 %n
|
||||||
ExecStartPre=-/usr/bin/podman rm %n --force
|
ExecStartPre=-/usr/bin/podman rm %n --force
|
||||||
ExecStart=/usr/bin/podman run \
|
ExecStart=/usr/bin/podman run \
|
||||||
--rm=true \
|
--rm=true \
|
||||||
|
@ -20,7 +20,8 @@ ExecStart=/usr/bin/podman run \
|
||||||
--port 1808{{ item }} \
|
--port 1808{{ item }} \
|
||||||
--listen 127.0.0.1 \
|
--listen 127.0.0.1 \
|
||||||
-l /var/log/mirrormanager/%n.log
|
-l /var/log/mirrormanager/%n.log
|
||||||
ExecStop=/usr/bin/podman stop %n
|
ExecStop=/usr/bin/podman stop -t 1 %n
|
||||||
|
KillMode=none
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue