[package] update haproxy to 1.4.1 and add hotplug script (#6875)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@20309 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
8
net/haproxy/files/haproxy.hotplug
Normal file
8
net/haproxy/files/haproxy.hotplug
Normal file
@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ "$ACTION" = add ]; then
|
||||
|
||||
/etc/init.d/haproxy enabled && \
|
||||
/etc/init.d/haproxy start
|
||||
fi
|
||||
|
@ -8,6 +8,12 @@ HAPROXY_BIN="/usr/sbin/haproxy"
|
||||
HAPROXY_CONFIG="/etc/haproxy.cfg"
|
||||
HAPROXY_PID="/var/run/haproxy.pid"
|
||||
|
||||
boot() {
|
||||
|
||||
#Do nothing on boot
|
||||
exit 0
|
||||
}
|
||||
|
||||
start() {
|
||||
[ -x "$HAPROXY_BIN" ] || return 1
|
||||
|
||||
|
Reference in New Issue
Block a user