keepalived: set default run directory for pid file on build
This fixes a runtime startup error on system which does not have a
toplevel runtime directory for the pid file. On openwrt the pid is
located at /var/run and not on /run. To fix that add a configure option to
move the pid location to /var/run.
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
(cherry picked from commit bc98aaa3f7
)
* Patch adapted for the branch so that it can be applied correctly
This commit is contained in:
parent
2888560b93
commit
dee2e818b9
1 changed files with 3 additions and 2 deletions
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||
|
||||
PKG_NAME:=keepalived
|
||||
PKG_VERSION:=2.0.18
|
||||
PKG_RELEASE:=2
|
||||
PKG_RELEASE:=3
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://www.keepalived.org/software
|
||||
|
@ -86,7 +86,8 @@ endef
|
|||
|
||||
CONFIGURE_ARGS+= \
|
||||
--with-init=SYSV \
|
||||
--disable-nftables
|
||||
--disable-nftables \
|
||||
--with-run-dir="/var/run"
|
||||
|
||||
ifeq ($(CONFIG_KEEPALIVED_VRRP),)
|
||||
CONFIGURE_ARGS += \
|
||||
|
|
Loading…
Reference in a new issue