Hi,

>> 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..
>
> I know some people who do a very close variant. They install the
> binary with the version in its name, then make haproxy a symlink
> to the version. That way, it's even easier to revert in case of
> issues :
>
>     cp haproxy /usr/sbin/haproxy-1.5-dev12
>     ln -sf haproxy-1.5-dev12 /usr/sbin/haproxy

If you want to reproduce Makefile behavior  you may prefer to use
install(1) witch can invoke strip(1) and save around 50kB.

install -s haproxy /usr/sbin/haproxy-1.5-dev12

That was my 2 euro cents
Joris
>
> I'm doing that myself too on the main site BTW, except that since
> I regularly install test versions, I have a more complex naming
> scheme :-)
>
> Also, you can use "reload" instead of "restart" to replace the
> process. The difference is that upon "reload", the old process
> will go away only if the new one managed to start without error.
> This can avoid service outages !
>
> Regards,
> Willy
>
>

Reply via email to