Patch Debian haproxy 1.3.14.2-1 Fix init script reload

From: Jean-Baptiste Quenot <jbq#caraldi.com>
Date: Thu, 24 Jan 2008 10:26:32 +0100


Dear Arnaud,

Thanks for maintaining haproxy on Debian systems. Please find below a patch to fix init script reload for Ubuntu (sh is not bash) and use
-sf option instead of -st.

 haproxy_reload()
 {
- $HAPROXY -f "$CONFIG" -p $PIDFILE -D $EXTRAOPTS -st $(<$PIDFILE) \

+       $HAPROXY -f "$CONFIG" -p $PIDFILE -D $EXTRAOPTS -sf $(cat $PIDFILE) \
                || return 2
        return 0

 }

Cheers,
--

Jean-Baptiste Quenot
http://caraldi.com/jbq/blog/ Received on 2008/01/24 10:26

This archive was generated by hypermail 2.2.0 : 2008/01/24 10:30 CET