Skip to content

Commit

Permalink
lldpd: add reload trigger
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
stintel committed Nov 14, 2021
1 parent d44ab66 commit 53247d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package/network/services/lldpd/Makefile
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions package/network/services/lldpd/files/lldpd.init
Expand Up @@ -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
Expand Down

0 comments on commit 53247d3

Please sign in to comment.