Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Jan 2005 17:56:03 +0100 (CET)
From:      Joerg Pulz <Joerg.Pulz@frm2.tum.de>
To:        Matthias Buelow <mkb@incubus.de>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: named exits on SIGHUP?
Message-ID:  <20050102174445.E714@hades.admin.frm2>
In-Reply-To: <41D8156D.8080003@incubus.de>
References:  <41D8156D.8080003@incubus.de>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sun, 2 Jan 2005, Matthias Buelow wrote:

> Hi folks,
>
> when I kill -HUP named on 5.3 (BIND 9), it exits, instead of reloading, as 
> stated in the manpage.  Is this normal?  I think it's rather impractical, 
> since it prevents proper log rotation through newsyslog.conf (when using 
> "file" logging in named.conf).  It doesn't seem to matter if it's running 
> chrooted or not.

i noticed the same behavior.
it did not exit if named is running in foreground, started with "-f".

it's also impractical as '/etc/rc.d/named' is using the HUP signal for the 
reload command which causes the process to exit silently.
the named(8) manpage says in the SIGNAL section:
[snip]
In  routine  operation, signals should not be used to control the name-
server; rndc(8) should be used instead.
[snip]

i tried 'rndc reload' and it's working and did not cause the named process 
to exit. maybe '/etc/rc.d/named' should be changed to use this as reload 
command.

i have not looked deeper into this because my spare time is currently very 
limited.

regards
Joerg

- -- 
The beginning is the most important part of the work.
 				-Plato
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)

iD8DBQFB2CenSPOsGF+KA+MRAuu2AJ9cS1wJIhYw3SyhqQyjVy5EP5e1YACglMWt
dMpKdIEqWEVjAB6CF7BoVbw=
=4lP4
-----END PGP SIGNATURE-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050102174445.E714>