Date: Thu, 24 Feb 2011 15:51:24 GMT From: Helmut Schneider <jumper99@gmx.de> To: freebsd-gnats-submit@FreeBSD.org Subject: bin/155006: named(8): /etc/rc.d/named might set wrong pid file Message-ID: <201102241551.p1OFpOFf053830@red.freebsd.org> Resent-Message-ID: <201102241600.p1OG0KaG019832@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 155006
>Category: bin
>Synopsis: named(8): /etc/rc.d/named might set wrong pid file
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Feb 24 16:00:19 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Helmut Schneider
>Release: 8.1-RELEASE-p2
>Organization:
>Environment:
>Description:
According to "man named 8" the default pid file is /var/run/named/named.pid. /etc/rc.d/named says:
pidfile="${named_pidfile:-/var/run/named/pid}"
There might be a reason for it but if not /etc/rc.d/named should state:
pidfile="${named_pidfile:-/var/run/named/${name}.pid}
>How-To-Repeat:
>Fix:
--- /etc/rc.d/named.org 2011-02-24 16:43:08.000000000 +0100
+++ /etc/rc.d/named 2011-02-24 16:43:37.000000000 +0100
@@ -279,7 +279,7 @@
#
required_dirs="$named_chrootdir" # if it is set, it must exist
-pidfile="${named_pidfile:-/var/run/named/pid}"
+pidfile="${named_pidfile:-/var/run/named/${name}.pid}"
named_confdir="${named_chrootdir}${named_conf%/*}"
run_rc_command "$1"
>Release-Note:
>Audit-Trail:
>Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102241551.p1OFpOFf053830>
