NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
bin/41252: named pid file has moved
>Number: 41252
>Category: bin
>Synopsis: named pid file has moved
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Mon Apr 20 16:20:00 +0000 2009
>Originator: Alan Barrett
>Release: NetBSD 5.99.11
>Organization:
Not much
>Environment:
System: NetBSD 5.99.11 i386
>Description:
named(8) has changed the default location of its pid file,
from /var/run/named.pid to /var/run/named/named.pid.
/etc/rc.d/named does not know this.
Due to chroot usage, the pid file is actually created
in /var/chroot/named/var/run/named/named.pid,
whereas the outer /var/run/named is a symlink to
/var/chroot/named/var/run/named.pid. This causes "/etc/rc.d/named
stop" to be unable to stop the named process.
>How-To-Repeat:
Code inspection
>Fix:
One or more of the following:
* Change the built-in default back to /var/run/named.pid.
* Leave the built-in default as the incompatible new
value /var/run/named/named.pid, but provide
options { pid-file "/var/run/named.pid"; }
in the default and sample named.conf files.
* Adjust /etc/rc.d/named.conf to create the symlink as
/var/run/named.pid -> /var/chroot/named/var/run/named/named.pid
* Document the change in src/doc/CHANGES and in release notes
for the next version of NetBSD.
Home |
Main Index |
Thread Index |
Old Index