net/haproxy: override "graceful" restart if required, fixes #1745

This commit is contained in:
Frank Wall
2020-03-30 14:34:55 +02:00
parent f1042b463b
commit df5934d4d2
@@ -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}