[openwrt/openwrt] lldpd: consolidate procd command lines

LEDE Commits lede-commits at lists.infradead.org
Sun Nov 14 11:49:30 PST 2021


stintel pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/d44ab665a6b848422657ce19e3d6c6e76fed0dc2

commit d44ab665a6b848422657ce19e3d6c6e76fed0dc2
Author: Stijn Tintel <stijn at linux-ipv6.be>
AuthorDate: Sun Nov 14 21:12:53 2021 +0200

    lldpd: consolidate procd command lines
    
    There is no need to have multiple lines for this.
    
    Signed-off-by: Stijn Tintel <stijn at linux-ipv6.be>
---
 package/network/services/lldpd/Makefile         | 2 +-
 package/network/services/lldpd/files/lldpd.init | 3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/package/network/services/lldpd/Makefile b/package/network/services/lldpd/Makefile
index 2d2a8c4a7d..fcfbc18286 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:=1
+PKG_RELEASE:=2
 
 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 7a5b25e016..74fece7227 100644
--- a/package/network/services/lldpd/files/lldpd.init
+++ b/package/network/services/lldpd/files/lldpd.init
@@ -84,8 +84,7 @@ start_service() {
 	write_lldpd_conf
 
 	procd_open_instance
-	procd_set_param command /usr/sbin/lldpd
-	procd_append_param command -d # don't daemonize, procd will handle that for us
+	procd_set_param command /usr/sbin/lldpd -d
 
 	[ $enable_cdp -gt 0 ] && procd_append_param command '-c'
 	[ $enable_fdp -gt 0 ] && procd_append_param command '-f'



More information about the lede-commits mailing list