Date: Mon, 13 Sep 1999 17:24:04 +0900 (JST) From: <haro@tk.kubota.co.jp> To: FreeBSD-gnats-submit@freebsd.org Subject: conf/13724: Prevent ".: Out of file descriptors" error on system bootup. Message-ID: <199909130824.RAA06304@jkpc15.tk.kubota.co.jp>
index | next in thread | raw e-mail
>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
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199909130824.RAA06304>
