From owner-freebsd-bugs Mon Sep 13 5:20: 5 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 5BBE915549 for ; Mon, 13 Sep 1999 05:20:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id FAA60253; Mon, 13 Sep 1999 05:20:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from kbtfw.kubota.co.jp (kbtfw.kubota.co.jp [133.253.102.202]) by hub.freebsd.org (Postfix) with ESMTP id C0E5315577 for ; Mon, 13 Sep 1999 05:17:19 -0700 (PDT) (envelope-from haro@tk.kubota.co.jp) Received: by kbtfw.kubota.co.jp; id VAA12921; Mon, 13 Sep 1999 21:17:17 +0900 (JST) Received: from unknown(133.253.31.1) by kbtfw.kubota.co.jp via smap (4.1) id xma012864; Mon, 13 Sep 99 21:16:31 +0900 Received: (from uucp@localhost) by lemond.gkn.kubota.co.jp (8.9.3+3.2W/3.7W99070916) with UUCP id VAA10921 for FreeBSD-gnats-submit@freebsd.org; Mon, 13 Sep 1999 21:16:30 +0900 (JST) Received: (from haro@localhost) by jkpc15.tk.kubota.co.jp (8.9.3/3.7W-uucp) id RAA06304; Mon, 13 Sep 1999 17:24:04 +0900 (JST) Message-Id: <199909130824.RAA06304@jkpc15.tk.kubota.co.jp> Date: Mon, 13 Sep 1999 17:24:04 +0900 (JST) From: Reply-To: haro@tk.kubota.co.jp To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: conf/13724: Prevent ".: Out of file descriptors" error on system bootup. Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 13724 >Category: conf >Synopsis: Prevent ".: Out of file descriptors" error on system bootup. >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Sep 13 05:20:00 PDT 1999 >Closed-Date: >Last-Modified: >Originator: Munehiro Matsuda >Release: FreeBSD 3.2-STABLE i386 >Organization: KUBOTA Corp. Technology Development Headquarters, Tokyo Japan >Environment: Tested with FreeBSD 3.2-STABLE, as of CTM's src-3.0273.gz, on a NEC VersaProNX. >Description: System will fail to boot with ".: Out of file descriptors" error, if by accident, or by what ever reason, overwriting /etc/rc.conf with /etc/defaults/rc.conf. May be reproducable on -current too? >How-To-Repeat: # cp /etc/defaults/rc.conf /etc/rc.conf # reboot >Fix: Apply the following patch to etc/defaults/rc.conf, to prevent recursive includes of rc_conf_files. --- etc/defaults/rc.conf.org Thu Sep 2 22:22:27 1999 +++ etc/defaults/rc.conf Mon Sep 13 16:35:46 1999 @@ -221,10 +221,15 @@ ############################################################## ### Allow local configuration override at the very end here ## ############################################################## # # +if [ "${default_rc_conf:-first_time}" = "first_time" ]; then + default_rc_conf="do_fail_safe" +else + exit +fi for i in ${rc_conf_files}; do if [ -f $i ]; then . $i fi >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message