From nobody Wed Aug 06 11:29:23 2025 X-Original-To: ports-bugs@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 4bxp3R4zCtz63b73 for ; Wed, 06 Aug 2025 11:29:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bxp3R2VJLz3WvW for ; Wed, 06 Aug 2025 11:29:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1754479763; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/yeHviomB5pJgc3a15Wd1ii/8y574KoYtsDdjYRfIZQ=; b=cnOPU0DoJXyKlEAflXC35bsYTSZsj0CgwQh/Q79KLtcXNeDXpq2pkZdio4FbzgP+vjiwwT fJk0DbvjQpFfb+rNeQai7vuwUiGgxN4blG4dkQy9EbAA+W8bhHvaPBp5bfnOQvjCMlBlYU uozuS5u8qZ1YYv7XdrAD+NgpBSOSzCFIyMDqXjoTxdWLanzNGNWE+RgiZHeNJRlsViKq61 98kkRpnEfdHMDM6RqycxKX3VAUyxjJKItmhab5jS8oAbI212/lPAo8VRJAisXRRJ5w4JrG CcrPq/hzo3b/9tFtyJ+bN3CXcWPhIwBtRR78DOO1CLGsWNzZf6ZZ6fif+0Eiag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1754479763; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/yeHviomB5pJgc3a15Wd1ii/8y574KoYtsDdjYRfIZQ=; b=emaxrTNG2xTmsWYS/D4oJEGMHAwPPR/Ou+IiieB8RfVjCdsSMUnFR7f1k3qYps/1aeWzSg oppXCk+y8Bla/pgWkS/g0KGohRnZwqqj9KFFQ2vJ+V/ykEZ2LbRXVXZ9017x15wMO0ocp8 tEUNcdzunjTfXj024b2PhdQ2ZaQXeMtsmc55Uy2bCA4paCsbrIxPZFIMupnrkfGgdMiPM7 Mln7kQyaBAvZrrs6MvirAsSGwDVcsrvYpjiiehfixs+lToBQfg8zdGfuzYfJ/aqZ6tM6wq MQYYkO0JIM7iod307nviQPvRLUE5TI2BUQwQu0W5Pjj2/jOui5J0eJY0Cx3CaA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1754479763; a=rsa-sha256; cv=none; b=uJb9BASTUUaIc/6uVpU//3HJkmrUv40/Dxr7w+0xSa58BVrp20CygV1h+9ksrCSjRvoKzo CVZy8AiejDYyA3dE8gLe56tH7jlEs3YFxfC8X3Ld1ZqxXF/d0t+fO34j9UHM+y0C8u+jn5 n3K+NEw8A5c9UU8GAFJ8eRHa8RsjuC72F4ccm4ovM7lDUOCFDYi8CHc3V0VJ1RT6cGLE9t 5rkhP3+ebOjGyZSQdKm/ZVheS4heqLVm8JVmm9SKs4sSrBOoHyxTPOmpIwcFlSUXyYptxz n70Rq1DkrmCsmO9Kb5lmJ/B25Or4E+F9WodYbUhnm88mlfgKb28fJrZKYllEFg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4bxp3R1ZPCz3sr for ; Wed, 06 Aug 2025 11:29:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 576BTNi0062253 for ; Wed, 6 Aug 2025 11:29:23 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 576BTNUR062252 for ports-bugs@FreeBSD.org; Wed, 6 Aug 2025 11:29:23 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 288689] dns/dnsmasq: test config before restart Date: Wed, 06 Aug 2025 11:29:23 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: gerrit.kuehn@aei.mpg.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: mandree@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports-bugs@freebsd.org Sender: owner-freebsd-ports-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D288689 Bug ID: 288689 Summary: dns/dnsmasq: test config before restart Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: mandree@FreeBSD.org Reporter: gerrit.kuehn@aei.mpg.de Flags: maintainer-feedback?(mandree@FreeBSD.org) Assignee: mandree@FreeBSD.org In everyday operation, it sometimes happens that the dnsmasq.conf file is changed in a way the prevents dnsmasq from parsing ist properly. In such a case, issuing "service dnsmasq restart" gives back an error message (that is sometimes hard to spot because of many other output) and leaves the user wi= th a dns/dhcp service that is not running and not startable manually (the config file needs to be fixed first). I cannot imagine any situation where this would be the desired result, especially with a crucial network service as dns or dhcp. Thus, I suggest to add and additional check of the config file before restarting the service. This is easily done with dnsmasq itself as it comes with a test function built-in: > /usr/local/sbin/dnsmasq -C /usr/local/etc/dnsmasq.conf --test If adding this test as mandatory for a restart is considered a violation of POLA, I would suggest to add an extra rc option that allows enabling the te= st. In either case, I would be willing to help working on this, if desired. --=20 You are receiving this mail because: You are the assignee for the bug.=