Date: Mon, 23 Sep 2024 22:59:39 -0400 From: Chris Ross <cross+freebsd@distal.com> To: freebsd-ports@freebsd.org Subject: isc-dhcpd rc.d failure Message-ID: <20BC9419-41BC-4FB1-9920-9ECCD14A847E@distal.com>
next in thread | raw e-mail | index | archive | help
Hello. FreeBSD 14.1, isc-dhcp44-server-4.4.3P1_1. I find when I run =E2=80=9Cservice isc-dhcpd restart=E2=80=9D, I get failures/errors = boiling down to: Unknown command -4-cf Usage: dhcpd [-p <UDP port #>] [-f] [-d] [-q] [-t|-T] [-4|-6] [-cf config-file] [-lf lease-file] Tracing the script, I see this is caused by the sed in = dhcpd_checkconfig() + rc_flags=3D'-4 -q -cf /usr/local/etc/dhcpd.conf -lf = /var/db/dhcpd/dhcpd.leases -pf /var/run/dhcpd/dhcpd.pid -user dhcpd = -group dhcpd int1 int2 -cf /usr/local/etc/dhcpd.conf -lf = /var/db/dhcpd/dhcpd.leases -pf /var/run/dhcpd/dhcpd.pid -user dhcpd = -group dhcpd int1 int2=E2=80=99 + rc_flags_mod=3D'-4 -q -cf /usr/local/etc/dhcpd.conf -lf = /var/db/dhcpd/dhcpd.leases -pf /var/run/dhcpd/dhcpd.pid -user dhcpd = -group dhcpd int1 int2 -cf /usr/local/etc/dhcpd.conf -lf = /var/db/dhcpd/dhcpd.leases -pf /var/run/dhcpd/dhcpd.pid -user dhcpd = -group dhcpd int1 int2=E2=80=99 + echo '-4 -q -cf /usr/local/etc/dhcpd.conf -lf = /var/db/dhcpd/dhcpd.leases -pf /var/run/dhcpd/dhcpd.pid -user dhcpd = -group dhcpd int1 int2 -cf /usr/local/etc/dhcpd.conf -lf = /var/db/dhcpd/dhcpd.leases -pf /var/run/dhcpd/dhcpd.pid -user dhcpd = -group dhcpd int1 int2=E2=80=99 + sed -Ee 's/(^-q | -q | -q$)//=E2=80=98 + rc_flags_mod=3D'-4-cf /usr/local/etc/dhcpd.conf -lf = /var/db/dhcpd/dhcpd.leases -pf /var/run/dhcpd/dhcpd.pid -user dhcpd = -group dhcpd int1 int2 -cf /usr/local/etc/dhcpd.conf -lf = /var/db/dhcpd/dhcpd.leases -pf /var/run/dhcpd/dhcpd.pid -user dhcpd = -group dhcpd int1 int2=E2=80=99 + /usr/local/sbin/dhcpd -t -q -4-cf /usr/local/etc/dhcpd.conf -lf = /var/db/dhcpd/dhcpd.leases -pf /var/run/dhcpd/dhcpd.pid -user dhcpd = -group dhcpd int1 int2 -cf /usr/local/etc/dhcpd.conf -lf = /var/db/dhcpd/dhcpd.leases -pf /var/run/dhcpd/dhcpd.pid -user dhcpd = -group dhcpd int1 int2 (Replaced my interface list with =E2=80=9Cint1 int2=E2=80=9D, but direct = other than that.) Clearly, the attempt to remove the =E2=80=9C-q=E2=80=9D is breaking = things given what I have in /etc/rc.conf: dhcpd_flags=3D"-4 -q=E2=80=9D Thanks. In addition, if anyone wants to figure out why it seems that = the options are doubled up, that may be the real problem. *shrug* - Chris
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20BC9419-41BC-4FB1-9920-9ECCD14A847E>