Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Singals are ignored, breaking monitoring systems #50

Open
sbienkow opened this issue Apr 13, 2021 · 1 comment
Open

Singals are ignored, breaking monitoring systems #50

sbienkow opened this issue Apr 13, 2021 · 1 comment

Comments

@sbienkow
Copy link

Monitoring exporters, like this one: https://github.com/cafebazaar/keepalived-exporter rely on being able to send signal to docker container in order for keepalived to dump its stats/data files.

Because in this image the PID1 is merely a startup process (it doesn't exec keepalived), it is the one that receives the signals. It ignores those signals completely, causing it to fail. I believe fixing it might require allowing containers to register custom signal handlers here: https://github.com/osixia/docker-light-baseimage/blob/master/image/tool/run#L892-L894

TL;DR:
I'd expect running docker kill -s 12 keepalived to cause it to create /tmp/keepalived.stats.

@nser77
Copy link

nser77 commented Apr 21, 2023

HI, working fine for me with this PR: #60

Send signal:

 docker kill -s 10 keepalived

Result:

[...]
Fri Apr 21 06:51:48 2023: Printing parent data for process(1) on signal
Fri Apr 21 06:51:48 2023: Printing VRRP data for process(7) on signal
[...]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants