From b5eac25f1479929e5f1b760c237d94d6443938ba Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Sun, 23 Jun 2024 10:36:12 -0500 Subject: [PATCH] r/minio: Fix ExecReload command Sending SIGHUP to the main PID (i.e. conmon) ends up stopping the service. What we really want is to send the signal to main PID _inside_ the container. We can achieve this by using `podman kill` instead of `kill`. --- roles/minio/templates/minio.container.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/minio/templates/minio.container.j2 b/roles/minio/templates/minio.container.j2 index 7f173b3..d67e9d0 100644 --- a/roles/minio/templates/minio.container.j2 +++ b/roles/minio/templates/minio.container.j2 @@ -15,7 +15,7 @@ Network=host NoNewPrivileges=yes [Service] -ExecReload=/bin/kill -HUP $MAINPID +ExecReload=/usr/bin/podman kill -s HUP --cidfile %t/%N.cid TimeoutStartSec=5min Restart=always MemoryDenyWriteExecute=yes