From d39474d9e6d00046abf40c11f95fcd3e994c8994 Mon Sep 17 00:00:00 2001 From: Thomas Heil Date: Wed, 6 Oct 2010 14:15:43 +0000 Subject: [PATCH] [package] haproxy: fix blocking reload of service SVN-Revision: 23274 --- net/haproxy/Makefile | 2 +- net/haproxy/files/haproxy.init | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/net/haproxy/Makefile b/net/haproxy/Makefile index 6959a8e11c..44361cca28 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 1b6b5a49b8..b691ec8c94 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) } -- 2.30.2