Hello,

On Thu, Nov 09, 2023 at 05:09:19PM +0800, ?? wrote:
> hi,   1?docker pull haproxy:2.8.3
>    2?haproxy.conf:external-check command /var/lib/haproxy/test.sh
> 
> 
>    When the container is running in the RockLinux environment, the
> test.sh script is not called for execution. On the contrary, the Centos
> environment can be called and executed normally.
> 
>    Is there a configuration issue? Or a bug? Seeking a solution,
> thank you very much!

You should include a complete config, the most important parts are missing
so it's impossible to respond. Did you enable the various insecure-*
keywords needed with external-check as documented ? Do you have any
chroot directive in your config ? Are you sure your script does not
reference a shell that's missing from your system ? Does it have execute
and read permissions for the user haproxy is running under ?

If everything looks good, you can also run it under "strace -f" to see what
happens when a fork/exec happens. Maybe you'll notice some missing files
and/or some missing permissions on certain operations.

Willy

PS: be careful, your mailer sent lots of HTML garbage above that makes
    your message complicated to read.

Reply via email to