From owner-freebsd-questions@FreeBSD.ORG Sun Jan 2 16:56:15 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E9A6D16A4CE for ; Sun, 2 Jan 2005 16:56:15 +0000 (GMT) Received: from mailhost.frm2.tum.de (mailhost.frm2.tum.de [129.187.179.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB5CE43D39 for ; Sun, 2 Jan 2005 16:56:10 +0000 (GMT) (envelope-from Joerg.Pulz@frm2.tum.de) Received: from localhost (mailhost.frm2.tum.de [129.187.179.12]) by mailhost.frm2.tum.de (8.13.1/8.13.1) with ESMTP id j02Gu9H1001433; Sun, 2 Jan 2005 17:56:09 +0100 (CET) (envelope-from jpulz@frm2.tum.de) Received: from hades.admin.frm2 (hades.admin.frm2 [172.25.1.10]) by mailhost.frm2.tum.de (8.13.1/8.13.1) with ESMTP id j02Gu7Xa001429 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 2 Jan 2005 17:56:07 +0100 (CET) (envelope-from jpulz@frm2.tum.de) Received: from hades.admin.frm2 (localhost [127.0.0.1]) by hades.admin.frm2 (8.13.1/8.13.1) with ESMTP id j02Gu7P9000766; Sun, 2 Jan 2005 17:56:07 +0100 (CET) (envelope-from jpulz@frm2.tum.de) Received: (from jpulz@localhost) by hades.admin.frm2 (8.13.1/8.13.1/Submit) id j02Gu7AW000765; Sun, 2 Jan 2005 17:56:07 +0100 (CET) (envelope-from jpulz) Date: Sun, 2 Jan 2005 17:56:03 +0100 (CET) From: Joerg Pulz To: Matthias Buelow In-Reply-To: <41D8156D.8080003@incubus.de> Message-ID: <20050102174445.E714@hades.admin.frm2> References: <41D8156D.8080003@incubus.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: at mailhost.frm2.tum.de cc: freebsd-questions@freebsd.org Subject: Re: named exits on SIGHUP? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Jan 2005 16:56:16 -0000 -----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-----