Trap the sigterm during the stop of a container
Author: fariddaCreated Jun 1, 2017Updated Feb 9, 2021
Hi,
I would like to know if with dumb-init it's possible to trap the sigkill to be able to do something else during the stop of the container ?
I used keepalived and two process was created but the second one doesn't have the pid 1 for parent so it's not killed correctly.
root 7711 1 0 18:15 ? 00:00:00 keepalived -P xxx
root 7714 7711 0 18:15 ? 00:00:00 keepalived -P xxx
Regards,
Source: Yelp/dumb-init