aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/services/lldpd/files/lldpd.init
diff options
context:
space:
mode:
authorStijn Tintel <stijn@linux-ipv6.be>2021-11-14 21:12:53 +0200
committerStijn Tintel <stijn@linux-ipv6.be>2021-11-14 21:26:41 +0200
commitd44ab665a6b848422657ce19e3d6c6e76fed0dc2 (patch)
tree181ab6942436a7f5d9d4d10d3f87126a864b7dc7 /package/network/services/lldpd/files/lldpd.init
parentf054fcd98a27e6c2030155e1a8f056e76bffb6cc (diff)
downloadupstream-d44ab665a6b848422657ce19e3d6c6e76fed0dc2.tar.gz
upstream-d44ab665a6b848422657ce19e3d6c6e76fed0dc2.tar.bz2
upstream-d44ab665a6b848422657ce19e3d6c6e76fed0dc2.zip
lldpd: consolidate procd command lines
There is no need to have multiple lines for this. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Diffstat (limited to 'package/network/services/lldpd/files/lldpd.init')
-rw-r--r--package/network/services/lldpd/files/lldpd.init3
1 files changed, 1 insertions, 2 deletions
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'