Date: Fri, 13 Mar 2015 22:37:06 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 198571] net-mgmt/lldpd: runtime issues when using lldpd_flags Message-ID: <bug-198571-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198571 Bug ID: 198571 Summary: net-mgmt/lldpd: runtime issues when using lldpd_flags Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: jason.unovitch@gmail.com Created attachment 154284 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=154284&action=edit Patch to remove optional command_args and bump port revision Issue: net-mgmt/lldpd works if lldpd_flags are not set but fails to start when using lldpd_flags. The error seen was this: -I can only be used once This made no sense as "-I" was only used once. After some investigation, the following lines were seen when setting "-x" on the lldpd rc.d script. + eval '/usr/local/sbin/lldpd -I \*,!em3 -I \*,!em3' + /usr/local/sbin/lldpd -I '*,!em3' -I '*,!em3' Discussion: The lldpd rc.d script mistakenly sets "command_args=${lldpd_flags}"; command_args are optional arguments per rc.subr(8). This causes duplicate arguments to be called when starting the program causing failure in my case or potentially unpredictable results for other flags that weren't tested or relevant. Fix: Attached patch removes optional "command_args" and lets the rc system do its job. --- Comment #1 from Bugzilla Automation <bugzilla@FreeBSD.org> --- Maintainer informed via mail -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-198571-13>