Here is a simple script i use to update my HAproxy servers, the logic is
simple and I always keep the previous versions in case i need to roll back,
basically  build from source with the latest stable release and replace the
current haproxy, all your init scripts will continue to work.

cd /tmp/
wget http://haproxy.1wt.eu/download/latest/version.tar.gz
tar -xvzf haproxy-*cd haproxy-(version)
make TARGET=linux26 USE_PCRE=1 > replace the make with whatever fits your needs
mv /usr/sbin/haproxy /usr/sbin/haproxy_v.X.X  > keeps an old copy of the version
cp haproxy /usr/sbin/haproxy > your distro may be different
/etc/init.d/haproxy restart > or whatever init script you have..


Hope this helps.

On Tue, Sep 18, 2012 at 1:07 PM, Baptiste <[email protected]> wrote:

> Hi,
>
> 2 ways:
> - The dirty one:
> exactly the same way you installed haproxy 1.4.20, in the same place....
> - the nice one:
> install haproxy in a different directory, let say /opt/haproxy-1.4.22,
> then update your startup script
>
> For both ways:
> then reload haproxy.
> New process 1.4.22 will replace old 1.4.20 one
>
> cheers
>
>
> On Tue, Sep 18, 2012 at 6:57 PM, Odalinda Morales Rojas
> <[email protected]> wrote:
> > Hi
> >
> > I have already installed the version 1.4.20 of haproxy, but I need to
> > upgrade to version 1.4.22
> > I would greatly appreciate being told how I do.
> >
>
>

Reply via email to