Merge pull request #1755 from fraenki/haproxy_1745

net/haproxy: override "graceful" restart
This commit is contained in:
Frank Wall
2020-03-30 14:36:20 +02:00
committed by GitHub
2 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
PLUGIN_NAME= haproxy
PLUGIN_VERSION= 2.20
PLUGIN_VERSION= 2.21
PLUGIN_COMMENT= Reliable, high performance TCP/HTTP load balancer
PLUGIN_DEPENDS= haproxy
PLUGIN_MAINTAINER= opnsense@moov.de
@@ -19,6 +19,13 @@ reload)
rcprefix="hard"
fi
;;
restart)
# The RC script always performs a "graceful" stop when using the
# "restart" command. This behaviour cannot be altered. So we have to
# manually perform a "hardstop" now.
if [ "${haproxy_hardstop}" == "YES" ]; then
/usr/local/etc/rc.d/haproxy hardstop
fi
esac
/usr/local/etc/rc.d/haproxy ${rcprefix}${1}