[packages] haproxy: update to v1.3.23, fix restart action
git-svn-id: svn://svn.openwrt.org/openwrt/packages@19524 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
7178fab070
commit
5f12dc696f
@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright (C) 2009 Thomas Heil <heil@terminal-consulting.de>
|
||||
# Copyright (C) 2009-2010 Thomas Heil <heil@terminal-consulting.de>
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
@ -7,12 +7,12 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=haproxy
|
||||
PKG_VERSION:=1.3.22
|
||||
PKG_RELEASE:=2
|
||||
PKG_VERSION:=1.3.23
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=http://haproxy.1wt.eu/download/1.3/src/
|
||||
PKG_MD5SUM:=b84e0935cfea99eda43645d53bb82367
|
||||
PKG_MD5SUM:=4ffe926ccf4f4d53f149290eb001fad5
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
@ -40,7 +40,7 @@ define Build/Compile
|
||||
CFLAGS="$(TARGET_CFLAGS)" \
|
||||
LD="$(TARGET_CC)" \
|
||||
LDFLAGS="$(TARGET_LDFLAGS)" \
|
||||
SMALL_OPTS="-DBUFSIZE=8192 -DMAXREWRITE=1024" \
|
||||
SMALL_OPTS="-DBUFSIZE=16060 -DMAXREWRITE=4096" \
|
||||
all install
|
||||
endef
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
# Copyright (C) 2009 OpenWrt.org
|
||||
# Copyright (C) 2009-2010 OpenWrt.org
|
||||
|
||||
START=99
|
||||
STOP=80
|
||||
@ -11,16 +11,17 @@ HAPROXY_PID="/var/run/haproxy.pid"
|
||||
start() {
|
||||
[ -x "$HAPROXY_BIN" ] || return 1
|
||||
|
||||
start-stop-daemon -S -b -x $HAPROXY_BIN -- \
|
||||
-f "$HAPROXY_CONFIG" -V -D -d -p "$HAPROXY_PID"
|
||||
start-stop-daemon -S -x $HAPROXY_BIN -- \
|
||||
-f "$HAPROXY_CONFIG" -V -D -p "$HAPROXY_PID"
|
||||
}
|
||||
|
||||
stop() {
|
||||
start-stop-daemon -K -x $HAPROXY_BIN -p $HAPROXY_PID
|
||||
rm -f $HAPROXY_PID
|
||||
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
|
||||
}
|
||||
|
||||
reload() {
|
||||
[ ! -f "$HAPROXY_PID" ] && start
|
||||
$HAPROXY_BIN -f $HAPROXY_CONFIG -p $HAPROXY_PID -st $(cat $HAPROXY_PID)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user