From owner-freebsd-rc@FreeBSD.ORG Mon Jul 16 11:08:31 2007 Return-Path: X-Original-To: freebsd-rc@FreeBSD.org Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D40B416A402 for ; Mon, 16 Jul 2007 11:08:31 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id AAAFC13C48D for ; Mon, 16 Jul 2007 11:08:31 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l6GB8V2u018124 for ; Mon, 16 Jul 2007 11:08:31 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l6GB8U5c018120 for freebsd-rc@FreeBSD.org; Mon, 16 Jul 2007 11:08:30 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 16 Jul 2007 11:08:30 GMT Message-Id: <200707161108.l6GB8U5c018120@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-rc@FreeBSD.org Cc: Subject: Current problem reports assigned to you X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Jul 2007 11:08:31 -0000 Current FreeBSD problem reports Critical problems Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o conf/98758 rc [jail] [patch] Templatize 'jail_fstab' in /etc/rc.d/ja o conf/98846 rc [jail] [patch] Templatize 'jail_rootdir' in /etc/rc.d/ o conf/105689 rc syslogd starts too late at boot o conf/107155 rc [ppp] /etc/rc.d/ppp-user does not bring up pppoe at bo o conf/107364 rc pf fails to start on bootup after system update from F 5 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o conf/45226 rc [patch] Fix for rc.network, ppp-user annoyance o conf/48870 rc [PATCH] rc.network: allow to cancel interface status d o conf/58939 rc [patch] dumb little hack for /etc/rc.firewall{,6} o conf/73677 rc [patch] add support for powernow states to power_profi o conf/74817 rc [patch] network.subr: fixed automatic configuration of o conf/77663 rc Suggestion: add /etc/rc.d/addnetswap after addcritremo o conf/79196 rc [PATCH] configurable dummynet loading from /etc/rc.co o kern/81006 rc ipnat not working with tunnel interfaces on startup o conf/85363 rc syntax error in /etc/rc.d/devfs o conf/85819 rc [patch] script allowing multiuser mode in spite of fsc o conf/88913 rc [patch] wrapper support for rc.subr o conf/89061 rc [patch] IPv6 6to4 auto-configuration enhancement o conf/89870 rc [patch] feature request to make netif verbose rc.conf o conf/92523 rc [patch] allow rc scripts to kill process after a timeo o conf/93815 rc [patch] Adds in the ability to save ipfw rules to rc.d o conf/95162 rc [patch] Missing feature in rc.subr o conf/96343 rc [patch] rc.d order change to start inet6 before pf o conf/99444 rc [patch] Enhancement: rc.subr could easily support star o conf/99721 rc [patch] /etc/rc.initdiskless problem copy dotfile in s o conf/102700 rc [geli] [patch] Add encrypted /tmp support to GELI/GBDE o conf/102913 rc [jail] [patch] /etc/rc.d/named killall in jailed OS o conf/103486 rc [rc.d] [jail] [patch] rc.d/jail: mount fstab after dev o conf/103489 rc [rc.d] [jail] [patch] named_chroot_autoupdate doesn't o conf/103976 rc rc.d/named restart failure o conf/104549 rc [patch] rc.d/nfsd needs special _find_processes functi o conf/105145 rc [PATCH] add redial function to rc.d/ppp o conf/105568 rc [patch] Add more flexibility to rc.conf, to choose "_e o conf/106009 rc [patch] Fix pppoed startup script to process multiply 28 problems total. From owner-freebsd-rc@FreeBSD.ORG Thu Jul 19 09:30:07 2007 Return-Path: X-Original-To: freebsd-rc@hub.freebsd.org Delivered-To: freebsd-rc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EE70B16A400 for ; Thu, 19 Jul 2007 09:30:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id D965A13C4B4 for ; Thu, 19 Jul 2007 09:30:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l6J9U7JL042234 for ; Thu, 19 Jul 2007 09:30:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l6J9U7HR042232; Thu, 19 Jul 2007 09:30:07 GMT (envelope-from gnats) Date: Thu, 19 Jul 2007 09:30:07 GMT Message-Id: <200707190930.l6J9U7HR042232@freefall.freebsd.org> To: freebsd-rc@FreeBSD.org From: Rudy Rucker Cc: Subject: [patch] Re: conf/103976: rc.d/named restart failure X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Rudy Rucker List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jul 2007 09:30:08 -0000 The following reply was made to PR conf/103976; it has been noted by GNATS. From: Rudy Rucker To: bug-followup@FreeBSD.org, vivek@khera.org Cc: Subject: [patch] Re: conf/103976: rc.d/named restart failure Date: Thu, 19 Jul 2007 01:46:23 -0700 --- named.orig Thu Jul 19 01:35:41 2007 +++ named Thu Jul 19 01:46:44 2007 @@ -96,6 +96,15 @@ echo . fi fi + if killall -0 named 2> /dev/null; then + echo -n "Waiting... " + sleep 1 + fi + if killall -0 named 2> /dev/null; then + if killall named 2> /dev/null; then + echo -n ". " + fi + fi } From owner-freebsd-rc@FreeBSD.ORG Thu Jul 19 09:36:01 2007 Return-Path: X-Original-To: freebsd-rc@hub.freebsd.org Delivered-To: freebsd-rc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CD84416A404; Thu, 19 Jul 2007 09:36:01 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from freefall.freebsd.org (freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id A6C2813C46B; Thu, 19 Jul 2007 09:36:01 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from freefall.freebsd.org (dougb@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l6J9a1sw043626; Thu, 19 Jul 2007 09:36:01 GMT (envelope-from dougb@freefall.freebsd.org) Received: (from dougb@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l6J9a0m0043622; Thu, 19 Jul 2007 09:36:00 GMT (envelope-from dougb) Date: Thu, 19 Jul 2007 09:36:00 GMT Message-Id: <200707190936.l6J9a0m0043622@freefall.freebsd.org> To: vivek@khera.org, dougb@FreeBSD.org, freebsd-rc@FreeBSD.org, dougb@FreeBSD.org From: dougb@FreeBSD.org Cc: Subject: Re: conf/103976: rc.d/named restart failure X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jul 2007 09:36:01 -0000 Synopsis: rc.d/named restart failure State-Changed-From-To: open->feedback State-Changed-By: dougb State-Changed-When: Thu Jul 19 09:32:53 UTC 2007 State-Changed-Why: I'm a little confused by this PR, since in your example the 'killall' doesn't find a running process, so I don't understand what problem you're trying to solve. Are you saying that with the output that you pasted there IS still a named running, and then the 'start' fails for that reason? Responsible-Changed-From-To: freebsd-rc->dougb Responsible-Changed-By: dougb Responsible-Changed-When: Thu Jul 19 09:32:53 UTC 2007 Responsible-Changed-Why: I generally handle this script http://www.freebsd.org/cgi/query-pr.cgi?pr=103976 From owner-freebsd-rc@FreeBSD.ORG Thu Jul 19 16:12:53 2007 Return-Path: X-Original-To: freebsd-rc@FreeBSD.org Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 97D7916A401; Thu, 19 Jul 2007 16:12:53 +0000 (UTC) (envelope-from vivek@khera.org) Received: from yertle.kcilink.com (thingy.kcilink.com [74.92.149.59]) by mx1.freebsd.org (Postfix) with ESMTP id 6C4E913C4A6; Thu, 19 Jul 2007 16:12:53 +0000 (UTC) (envelope-from vivek@khera.org) Received: from [192.168.7.103] (host-103.int.kcilink.com [192.168.7.103]) by yertle.kcilink.com (Postfix) with ESMTP id B95DEB80A; Thu, 19 Jul 2007 11:57:41 -0400 (EDT) In-Reply-To: <200707190936.l6J9a0m0043622@freefall.freebsd.org> References: <200707190936.l6J9a0m0043622@freefall.freebsd.org> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <26F03516-97A0-4585-B14D-341BA25E50CB@khera.org> Content-Transfer-Encoding: 7bit From: Vivek Khera Date: Thu, 19 Jul 2007 11:57:40 -0400 To: dougb@FreeBSD.org X-Mailer: Apple Mail (2.752.2) Cc: freebsd-rc@FreeBSD.org Subject: Re: conf/103976: rc.d/named restart failure X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jul 2007 16:12:53 -0000 On Jul 19, 2007, at 9:36 AM, dougb@FreeBSD.org wrote: > Are you saying that with the output that you pasted there > IS still a named running, and then the 'start' fails for > that reason? Yes, that seems to be the case. verified just now. named is running. I try to restart. it takes 3 attempts before it succeeds. it seems on the second attempt it might have actually killed named, but did not restart it because the named process took too long to actually exit between the time it was asked to exit and the time the new process was launched. [root@bluefish]# ps axuw | grep ^bind bind 54478 8.6 8.2 174428 170848 ?? Rs 5Mar07 4346:06.96 / usr/sbin/named -t /var/named -u bind [root@bluefish]# /etc/rc.d/named restart Stopping named. named already running? (pid=54478). [root@bluefish]# /etc/rc.d/named restart Stopping named: rndc failed, trying killall: . named already running? (pid=54478). [root@bluefish]# /etc/rc.d/named restart Stopping named: rndc failed, trying killall: No matching processes were found Starting named. [root@bluefish]# ps axuw | grep ^bind bind 31155 7.9 0.3 9484 6376 ?? Rs 11:51AM 0:00.42 /usr/ sbin/named -t /var/named -u bind [root@bluefish]# uname -a FreeBSD bluefish.kcilink.com 6.1-RELEASE-p10 FreeBSD 6.1-RELEASE-p10 #3: Tue Oct 3 10:49:29 EDT 2006 vivek@redfish.kcilink.com:/n/ lorax1/usr6/obj.amd64/n/lorax1/usr6/src/sys/KCI64SMP amd64 I tried it one more time just to be sure: [root@bluefish]# ps axuw | grep ^bind bind 31155 11.0 0.6 14732 11640 ?? Rs 11:51AM 0:19.93 /usr/ sbin/named -t /var/named -u bind [root@bluefish]# /etc/rc.d/named restart Stopping named. named already running? (pid=31155). [root@bluefish]# ps axuw | grep ^bind [root@bluefish]# /etc/rc.d/named restart Stopping named: rndc failed, trying killall: No matching processes were found Starting named. [root@bluefish]# So it does seem that there needs to be something that waits for named to finish exiting before starting it again. This is a pretty fast box: CPU: Intel(R) Xeon(TM) CPU 3.00GHz (3000.12-MHz K8-class CPU) dual core with 2GB RAM and pretty much all it does is DNS and logfile collecting. From owner-freebsd-rc@FreeBSD.ORG Thu Jul 19 20:02:20 2007 Return-Path: X-Original-To: freebsd-rc@FreeBSD.org Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B27A516A400 for ; Thu, 19 Jul 2007 20:02:20 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.freebsd.org (Postfix) with SMTP id 5055513C4AC for ; Thu, 19 Jul 2007 20:02:20 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: (qmail 18337 invoked by uid 399); 19 Jul 2007 19:35:38 -0000 Received: from localhost (HELO lap.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTP; 19 Jul 2007 19:35:38 -0000 X-Originating-IP: 127.0.0.1 Message-ID: <469FBD09.9060806@FreeBSD.org> Date: Thu, 19 Jul 2007 12:35:37 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 2.0.0.4 (X11/20070617) MIME-Version: 1.0 To: Vivek Khera References: <200707190936.l6J9a0m0043622@freefall.freebsd.org> <26F03516-97A0-4585-B14D-341BA25E50CB@khera.org> In-Reply-To: <26F03516-97A0-4585-B14D-341BA25E50CB@khera.org> X-Enigmail-Version: 0.95.1 OpenPGP: id=D5B2F0FB Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-rc@FreeBSD.org Subject: Re: conf/103976: rc.d/named restart failure X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jul 2007 20:02:20 -0000 Vivek Khera wrote: > > On Jul 19, 2007, at 9:36 AM, dougb@FreeBSD.org wrote: >> Are you saying that with the output that you pasted there >> IS still a named running, and then the 'start' fails for >> that reason? > > Yes, that seems to be the case. verified just now. named is running. > I try to restart. it takes 3 attempts before it succeeds. Ok, I'll take a look, thanks. Doug -- This .signature sanitized for your protection