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
Not much
System: NetBSD 5.99.11 i386
        named(8) has changed the default location of its pid file,
        from /var/run/ to /var/run/named/

        /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/,
        whereas the outer /var/run/named is a symlink to
        /var/chroot/named/var/run/  This causes "/etc/rc.d/named
        stop" to be unable to stop the named process.

        Code inspection
        One or more of the following:

        * Change the built-in default back to /var/run/

        * Leave the built-in default as the incompatible new
          value /var/run/named/, but provide

                options { pid-file "/var/run/"; }

          in the default and sample named.conf files.

        * Adjust /etc/rc.d/named.conf to create the symlink as

          /var/run/ -> /var/chroot/named/var/run/named/

        * Document the change in src/doc/CHANGES and in release notes
          for the next version of NetBSD.

Home | Main Index | Thread Index | Old Index