From: Stijn Tintel Date: Sun, 14 Nov 2021 19:18:13 +0000 (+0200) Subject: lldpd: add reload trigger X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=53247d3cb43e1ecc5feef1753ca541e3c8f76110;p=openwrt%2Fstaging%2Fblogic.git lldpd: add reload trigger This is needed to reload the service when calling reload_config, if the UCI config has changed. Signed-off-by: Stijn Tintel --- diff --git a/package/network/services/lldpd/Makefile b/package/network/services/lldpd/Makefile index fcfbc182861d..8eb7e3571624 100644 --- a/package/network/services/lldpd/Makefile +++ b/package/network/services/lldpd/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=lldpd PKG_VERSION:=1.0.13 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://media.luffy.cx/files/lldpd diff --git a/package/network/services/lldpd/files/lldpd.init b/package/network/services/lldpd/files/lldpd.init index 74fece72271c..5b39144921f1 100644 --- a/package/network/services/lldpd/files/lldpd.init +++ b/package/network/services/lldpd/files/lldpd.init @@ -56,6 +56,10 @@ write_lldpd_conf() [ -e $LLDPD_CONFS_DIR ] || ln -s /etc/lldpd.d $LLDPD_CONFS_DIR } +service_triggers() { + procd_add_reload_trigger "lldpd" +} + start_service() { local enable_cdp