From nobody Tue Sep 24 02:59:39 2024 X-Original-To: freebsd-ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XCPkC53b0z5XB21 for ; Tue, 24 Sep 2024 03:00:35 +0000 (UTC) (envelope-from cross+freebsd@relay.distal.com) Received: from relay.wiredblade.com (relay.wiredblade.com [168.235.105.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4XCPkB2qM2z4Jqc for ; Tue, 24 Sep 2024 03:00:34 +0000 (UTC) (envelope-from cross+freebsd@relay.distal.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=relay.distal.com header.s=mail header.b=w3xU+6h7; dmarc=none; spf=pass (mx1.freebsd.org: domain of cross+freebsd@relay.distal.com designates 168.235.105.136 as permitted sender) smtp.mailfrom=cross+freebsd@relay.distal.com dkim-signature: v=1; a=rsa-sha256; d=relay.distal.com; s=mail; c=relaxed/relaxed; q=dns/txt; h=From:Subject:Date:Message-ID:To:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=DE7uo5WLL/Mo+C3oR/2BtpSq604eILYAsBAtb8kQPDQ=; b=w3xU+6h7Wdgy0DXvmagnMSK/XDetCpHU+wcLIFqNJdpIHmZIi60oxi+XxN79/FDE45vq0wh90V5EF+9kSFp+mUZKRWBlZDknd/3FB4/s8mABQozFnyd5f/QNgU0zPw/p/On5iYwJm49jIkHGFAziP8f/IpNukw/an8Z5rY4PqscDL7XfoAQJGjsS6Ln1oVsooDKTXwJKLuu+BLmv8WNb1OjCSvxGwP4EpTmNVWtIrcdaDlgxHvqq9gLheS LVuUisZ+7IRV93a7OCx7jK9s0XrDHtzxsL0GROvaANp/OM9TBrUmWrFM/9DW7/cbsBCVobclxrbmu2ACb1uuGvK67XTA== Received: from mail.distal.com (pool-108-51-233-124.washdc.fios.verizon.net [108.51.233.124]) by relay.wiredblade.com with ESMTPSA (version=TLSv1.2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256) ; Tue, 24 Sep 2024 03:00:27 +0000 Received: from smtpclient.apple ( [2600:4040:2c92:bb20:9122:1502:3874:e7f2]) by tristain.distal.com (OpenSMTPD) with ESMTPSA id 8c01c774 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Mon, 23 Sep 2024 23:00:25 -0400 (EDT) From: Chris Ross Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports@freebsd.org Sender: owner-freebsd-ports@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51\)) Subject: isc-dhcpd rc.d failure Message-Id: <20BC9419-41BC-4FB1-9920-9ECCD14A847E@distal.com> Date: Mon, 23 Sep 2024 22:59:39 -0400 To: freebsd-ports@freebsd.org X-Mailer: Apple Mail (2.3776.700.51) X-Spamd-Result: default: False [-3.20 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FORGED_SENDER(0.30)[cross@distal.com,cross@relay.distal.com]; R_DKIM_ALLOW(-0.20)[relay.distal.com:s=mail]; R_SPF_ALLOW(-0.20)[+a:relay.dynu.com]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TAGGED_FROM(0.00)[freebsd]; RCVD_TLS_ALL(0.00)[]; DKIM_TRACE(0.00)[relay.distal.com:+]; FROM_NEQ_ENVFROM(0.00)[cross@distal.com,cross@relay.distal.com]; ARC_NA(0.00)[]; DMARC_NA(0.00)[distal.com]; RCPT_COUNT_ONE(0.00)[1]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ports@freebsd.org]; RCVD_COUNT_TWO(0.00)[2]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-ports@freebsd.org]; ASN(0.00)[asn:3842, ipnet:168.235.104.0/22, country:US]; APPLE_MAILER_COMMON(0.00)[]; TO_DN_NONE(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[168.235.105.136:from]; MIME_TRACE(0.00)[0:+]; FROM_HAS_DN(0.00)[] X-Rspamd-Queue-Id: 4XCPkB2qM2z4Jqc X-Spamd-Bar: --- 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 ] [-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