clamav-prometheus-exporter icon indicating copy to clipboard operation
clamav-prometheus-exporter copied to clipboard

Container does not terminate on host reboot/shutdown

Open logopk opened this issue 2 years ago • 2 comments

Apparently clamav-prometheus-exporter does not react properly to kill -SIGTERM

So far with old containerd < v1.5 this did not matter, as containerd did not react properly on reboot when used in docker v20.10.x with live-restore. (https://github.com/containerd/containerd/issues/5502)

Now that this is fixed, clamav-prometheus-exporter is the last container hanging.

When I enter the container and send kill -SIGTERM nothing happens.

Can you try and clarify, if that is something I can fix on my side?

Thank You!

logopk avatar Mar 26 '22 15:03 logopk

I have to say that I run this with amd64 emulation via qemu on an mac m1 pro

▶ docker exec -ti clamav-exporter sh
/bin $ ps -aef
PID   USER     TIME  COMMAND
    1 promethe  0:00 {clamav-promethe} /usr/bin/qemu-x86_64 /bin/clamav-prometheus-exporter --clamav-address=clamav
   16 promethe  0:00 {sh} /usr/bin/qemu-x86_64 /bin/sh
   23 promethe  0:00 /bin/ps -aef

logopk avatar Mar 27 '22 12:03 logopk

The host on the console logs

systemd-shutdown[1]: Waiting for process: clamav-promethe

logopk avatar Mar 27 '22 12:03 logopk