From: Thomas Heil Date: Wed, 6 Oct 2010 14:15:43 +0000 (+0000) Subject: haproxy: fix blocking reload of service X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f7b8bbd7440849adb0df271021561d6cc545eb71;p=openwrt%2Fsvn-archive%2Fpackages.git haproxy: fix blocking reload of service SVN-Revision: 23274 --- diff --git a/net/haproxy/Makefile b/net/haproxy/Makefile index 6959a8e11..44361cca2 100644 --- a/net/haproxy/Makefile +++ b/net/haproxy/Makefile @@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=haproxy PKG_VERSION:=1.4.8 -PKG_RELEASE:=3 +PKG_RELEASE:=4 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://haproxy.1wt.eu/download/1.4/src diff --git a/net/haproxy/files/haproxy.init b/net/haproxy/files/haproxy.init index 1b6b5a49b..b691ec8c9 100644 --- a/net/haproxy/files/haproxy.init +++ b/net/haproxy/files/haproxy.init @@ -22,12 +22,10 @@ start() { } stop() { - start-stop-daemon -q -K -x $HAPROXY_BIN -p $HAPROXY_PID - sleep 3 - kill -0 `cat $HAPROXY_PID` 2>/dev/null && \ - start-stop-daemon -q -K -s KILL -x $HAPROXY_BIN -p $HAPROXY_PID + service_kill ${HAPROXY_BIN##*/} $HAPROXY_PID + rm -f $HAPROXY_PID } reload() { - $HAPROXY_BIN -f $HAPROXY_CONFIG -p $HAPROXY_PID -st $(cat $HAPROXY_PID) + $HAPROXY_BIN -f $HAPROXY_CONFIG -p $HAPROXY_PID -sf $(<$HAPROXY_PID) }