From owner-freebsd-ports-bugs@freebsd.org Mon Feb 5 15:29:47 2018 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0A8C5ED08E9 for ; Mon, 5 Feb 2018 15:29:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 80FB77828A for ; Mon, 5 Feb 2018 15:29:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 9350D22CA for ; Mon, 5 Feb 2018 15:29:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w15FTjbG060037 for ; Mon, 5 Feb 2018 15:29:45 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w15FTjcT060036 for freebsd-ports-bugs@FreeBSD.org; Mon, 5 Feb 2018 15:29:45 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: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 225687] dns/bind99, dns/bind910, dns/bind911, dns/bind912: rc script defaults to wrong pid location Date: Mon, 05 Feb 2018 15:29:44 +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: easy, patch, patch-ready X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: john@saltant.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: mat@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status keywords bug_severity priority component assigned_to reporter flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Feb 2018 15:29:47 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D225687 Bug ID: 225687 Summary: dns/bind99, dns/bind910, dns/bind911, dns/bind912: rc script defaults to wrong pid location Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Keywords: easy, patch, patch-ready Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: mat@FreeBSD.org Reporter: john@saltant.com Attachment #190343 maintainer-approval? Flags: Flags: maintainer-feedback?(mat@FreeBSD.org) Assignee: mat@FreeBSD.org Created attachment 190343 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D190343&action= =3Dedit dns/bind9x: Fix pid file location in rc script Synopsis =3D=3D=3D=3D=3D=3D=3D=3D All versions of the BIND 9 port supply an rc script (files/named.in) that determine the location of the pid file by searching the config file and fal= ling back to a hard-coded default. The rc default and the location specified in = the sample config file are the same, which is unnecessary, but the rc default is not the same as the default location compiled into the named binary, which = is necessary. Ports affected =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D dns/bind99 dns/bind910 dns/bind911 dns/bind912 Expected behavior =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 1. Specify the pid location in the config file The named binary writes a pid file to the specified location. The named rc script finds the pid location with get_pidfile_from_conf. 2. Don't specify the pid location in the config file The named binary writes a pid file to /var/run/named/named.pid. The named rc script finds no pid location with get_pidfile_from_conf and defaults to /var/run/named/named.pid Observed behavior =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 1. Specify the pid location in the config file [PASS] The named binary writes a pid file to the specified location. The named rc script finds the pid location with get_pidfile_from_conf. 2. Don't specify the pid location in the config file [FAIL] The named binary writes a pid file to /var/run/named/named.pid. The named rc script finds no pid location with get_pidfile_from_conf and defaults to /var/run/named/pid, which does not exist. Fix =3D=3D=3D The attached patch updates the RC scripts so the default PID location match= es the binary default. --=20 You are receiving this mail because: You are the assignee for the bug.=