bin/155006: named(8): /etc/rc.d/named might set wrong pid file
Helmut Schneider
jumper99 at gmx.de
Thu Feb 24 16:00:20 UTC 2011
>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:
More information about the freebsd-bugs
mailing list