slimtoolkit / slim

Slim(toolkit): Don't change anything in your container image and minify it by up to 30x (and for compiled languages even more) making it secure too! (free and open source)
Apache License 2.0
19.33k stars 724 forks source link

fix: stop signal handling after receiving sensor stop control command #599

Closed iximiuz closed 11 months ago

iximiuz commented 11 months ago

In the standalone mode, the target app can be done before the stop signal is received because of two reasons:

In the latter case, the sensor needs to wait for the stop signal before proceeding with the shutdown because otherwise, the container runtime may restart the container, which is not desirable.