On Tue, May 29, 2012 at 08:32:29PM +0000, Zulu Chas wrote:
> 
> am I wildly off course or is this config salvageable?
> 

To be honnest, your mail with overly long lines (half a kilobyte) is painful
to read, and once I made the effort of reading it, I didn't understand why
you're trying to cross-dress something which already exists and works.
 
The "disable-on-404" is made to permit enabling/disabling a server by a simple
"touch" or "rm". It appears that you want to exactly swap these two commands,
it really makes no sense to me to modify haproxy to support such a swap in a
script.

Another reason for disabling on 404 is that it will not accidently enable a
server which was started from an unmounted docroot file system. With your
method, it would still start it.

Also, the suggested way of dealing with very specific health checks is to
write a CGI or servlet to handle the various situations. Most people are
already doing this, and if you absolutely want to use "rm" to start the
server and "touch" to stop it, then 5 lines of shell in a CGI will do it.

Regards,
Willy


Reply via email to