On Mon, Jun 16, 2008 at 08:52:34AM +0200, Rene Plattner wrote:
> Rene Plattner schrieb:
> >I use Haproxy 1.3.15 on a Sun T2000 Machine installed with Solaris 10.
> >
> >I works very well so far!
> >But I noticed that the hot reconfiguration feature does not work.
> >Haproxy runs with four processes, maybe it has problems with more than
> >one process.
> >
> >Hot Reconfiguration:
> >HAPROXY_CONF=/usr/local/etc/haproxy/haproxy.cfg
> >HAPROXY_BIN=/usr/local/sbin/haproxy
> >HAPROXY_PID=/var/run/haproxy.pid
> >$HAPROXY_BIN -f $HAPROXY_CONF -p $HAPROXY_PID -sf $(<$HAPROXY_PID) -D
> >
> >Kind Regards,
> >
>
> Sorry, I noticed my fault!
> The -sf flag should be the last option.
> Therefore, the -D flag breaks the hot reconfiguration.
Yes, BTW you should also use $(cat $HAPROXY_PID) instead of $(<$HAPROXY_PID), because upon boot, if the file does not exist, the shell will return an error while trying to open the pid file, and not execute the command at all. Using 'cat' instead, it is 'cat' which will notice the error, but the command will start.
Regards,
Willy
Received on 2008/06/25 07:16
This archive was generated by hypermail 2.2.0 : 2008/06/25 07:30 CEST