mirror of
https://github.com/novatiq/packages.git
synced 2026-04-24 21:14:40 +01:00
haproxy: use new extra_command function definition
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user