haproxy: use new extra_command function definition
authorFlorian Eckert <fe@dev.tdt.de>
Wed, 28 Oct 2020 14:55:16 +0000 (15:55 +0100)
committerFlorian Eckert <fe@dev.tdt.de>
Wed, 4 Nov 2020 07:50:34 +0000 (08:50 +0100)
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
net/haproxy/Makefile
net/haproxy/files/haproxy.init

index bc1e8cb6f0a06cb00828abdd44fd7e6f06dae458..9faf70e53c264fd3508bac16e34021e94f040a8c 100644 (file)
@@ -11,7 +11,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=haproxy
 PKG_VERSION:=2.2.4
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://www.haproxy.org/download/2.2/src
index de5695204eb0061f451f49e5b5d1ff1e590c40fa..01d80d781b31495647904518e7072b487f1d937a 100644 (file)
@@ -6,8 +6,6 @@ STOP=80
 
 USE_PROCD=1
 
-EXTRA_COMMANDS="check"
-
 HAPROXY_BIN="/usr/sbin/haproxy"
 HAPROXY_CONFIG="/etc/haproxy.cfg"
 
@@ -20,6 +18,7 @@ start_service() {
        procd_close_instance
 }
 
+extra_command "check" "Check haproxy config"
 check() {
        $HAPROXY_BIN -c -q -V -f $HAPROXY_CONFIG
 }