mirror of
https://github.com/kernelkit/infix.git
synced 2026-08-02 05:43:02 +02:00
The extended kill delay (10 sec) is sometimes not enough for complex system containers. Also, podman sometimes take the opportunity to do housekeeping tasks when stopping a container. So, allow for up to 30 sec. grace period before we send SIGKILL. With the latest image prune extension, set a 60 sec. timeout for the cleanup task, in case podman gets stuck. This to prevent any future mishaps. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
8 lines
463 B
Plaintext
8 lines
463 B
Plaintext
# Start a container instance (%i) and redirect logs to /log/container
|
|
# Give podman enough time to properly shut down the container, kill:30
|
|
# The pre:script, which is responsibe for fetching a remote image, must
|
|
# not have a timeout. The cleanup should take no longer than a minute.
|
|
sysv log:prio:local1,tag:%i kill:30 pid:!/run/container:%i.pid \
|
|
pre:0,/usr/sbin/container cleanup:60,/usr/sbin/container \
|
|
[2345] <!> :%i container -n %i -- container %i
|