My current Keepalived/Haproxy setup without docker uses the killall script to check if haproxy is still running.
When i tried this in the docker setup it does not seem to work, i'm getting exit 127 errors in the logs.
Tue Feb 16 13:38:34 2021: Script `chk_haproxy` now returning 127,
Tue Feb 16 13:38:34 2021: VRRP_Script(chk_haproxy) failed (exited with status 127)
This is very weird because if I exec into the container the command runs as expected:
This is (almost) the same as on my current ubuntu server:
root@SKVLB01:/home/administrator# /usr/bin/killall -0 haproxy
<no output>
root@SKVLB01:/home/administrator# /usr/bin/killall -0 haproxyxxx
haproxyxxx: no process found
So I went back to the pidof version of the checker which works just fine, but im still curious why it wont work.
Maybe because the killall programs arent the same:
alpine:
My current Keepalived/Haproxy setup without docker uses the killall script to check if haproxy is still running. When i tried this in the docker setup it does not seem to work, i'm getting exit 127 errors in the logs.
This is very weird because if I exec into the container the command runs as expected:
This is (almost) the same as on my current ubuntu server:
So I went back to the pidof version of the checker which works just fine, but im still curious why it wont work. Maybe because the killall programs arent the same: alpine:
ubuntu:
My keepalived config:
My docker compose config: