lldpd: add reload trigger
authorStijn Tintel <stijn@linux-ipv6.be>
Sun, 14 Nov 2021 19:18:13 +0000 (21:18 +0200)
committerStijn Tintel <stijn@linux-ipv6.be>
Sun, 14 Nov 2021 19:26:41 +0000 (21:26 +0200)
This is needed to reload the service when calling reload_config, if the
UCI config has changed.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
package/network/services/lldpd/Makefile
package/network/services/lldpd/files/lldpd.init

index fcfbc182861d46b44f68a6bbfac67c93793f4b6d..8eb7e35716247ed6ac42783e1b92c43c17ca3f42 100644 (file)
@@ -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
index 74fece72271cac27984045a5ba5cef04169d2452..5b39144921f10afa3e232e67c8b53d5416f8ac2b 100644 (file)
@@ -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