From owner-freebsd-hackers Sat Mar 22 4:52:53 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 53C2C37B401 for ; Sat, 22 Mar 2003 04:52:52 -0800 (PST) Received: from precinct13.iowa365.com (precinct13.iowa365.com [64.49.251.237]) by mx1.FreeBSD.org (Postfix) with SMTP id A2D0443FA3 for ; Sat, 22 Mar 2003 04:52:51 -0800 (PST) (envelope-from ben@dubuque365.com) Received: (qmail 86354 invoked from network); 22 Mar 2003 12:52:51 -0000 Received: from unknown (HELO ?10.0.0.2?) (12.219.104.246) by precinct13.iowa365.com with SMTP; 22 Mar 2003 12:52:51 -0000 Subject: OID problem with Init? From: Ben Burke To: freebsd-hackers@freebsd.org Content-Type: text/plain Organization: Dubuque365.com Message-Id: <1048337570.86508.45.camel@watchtower.office.parksmediagroup.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 Date: 22 Mar 2003 06:52:50 -0600 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello Everyone, I was looking for a good way to run "make installworld" in single-user mode on a machine which I don't have any kind of remote hands or serial-console access to. The first thought that came to my head was to temporarily put the commands at the end of rc.shutdown. I'm not sure if the machine is still multi-user at that point. Anyway it worked, but on such a slow machine it didn't complete before init timed out the shutdown script. So I looked at init... On line 1576 (spacing changed, comment added for email): if ( sysctlbyname("kern.shutdown_timeout", &shutdowntimeout, &len, NULL, 0) == -1 || shutdowntimeout < 2 ) shutdowntimeout = DEATH_SCRIPT; /* DEATH_SCRIPT = 120 */ I know that there was a "kern.shutdown_timeout" in FBSD 3, but there doesn't seem to be one now in FBSD 4.8-RC (from yesterday). So my questions are: 1. Does init check for this seemingly retired OID on purpose? 2. What's "The Right Way" or even "A Right Way" to do an installworld on a remote machine? Thanks in advance! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message