From owner-freebsd-questions@FreeBSD.ORG Mon Dec 1 16:48:54 2003 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 068E316A4CF for ; Mon, 1 Dec 2003 16:48:54 -0800 (PST) Received: from smtp804.mail.ukl.yahoo.com (smtp804.mail.ukl.yahoo.com [217.12.12.141]) by mx1.FreeBSD.org (Postfix) with SMTP id BBA0743FBF for ; Mon, 1 Dec 2003 16:48:49 -0800 (PST) (envelope-from dcrudy@pacbell.net) Received: from adsl-67-123-10-153.dsl.pltn13.pacbell.net (HELO pacbell.net) (dcrudy@pacbell.net@67.123.10.153 with plain) by smtp1.bt.mail.vip.ukl.yahoo.com with SMTP; 2 Dec 2003 00:48:48 -0000 Message-ID: <3FCBE16E.5010204@pacbell.net> Date: Mon, 01 Dec 2003 16:48:46 -0800 From: Daniel Rudy Organization: SBC Internet Services User-Agent: Mozilla/5.0 (X11R6; U; FreeBSD 4.9-RELEASE; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: en-us, en, ja MIME-Version: 1.0 To: FreeBSD Questions References: <3FCB1B0C.6080902@pacbell.net> <007201c3b7fe$c6635280$a4b826cb@goo> In-Reply-To: <007201c3b7fe$c6635280$a4b826cb@goo> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: Controlling init on shutdown/reboot X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: dcrudy@pacbell.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Dec 2003 00:48:54 -0000 Somewhere around the time of 12/01/2003 03:32, the world stopped and listened as Rob contributed this to humanity: >>From line 99 of /usr/src/sbin/init/init.c, > > #define DEATH_SCRIPT 120 /* wait for 2min for /etc/rc.shutdown */ > > and on line 1576 it looks like you can change this with the sysctl > 'kern.shutdown_timeout'. > > But 2 minutes is a long time for a shell script - are you sure that > everything is working correctly? The problem is that a ppp.linkdown.sh script needs to do something and it's not doing it. Works fine if I execute the script normally from the command line though using the approperiate parameters that ppp would send it. It seems that init is killing the script before the script can finish, which is the problem. BTW, that oid, kern.shutdown_timeout does not exist. I'm running 4.9-RELEASE. > ----- Original Message ----- > From: "Daniel Rudy" > Subject: Controlling init on shutdown/reboot > > > >>Hello, >> >>How does one allocate more time for /etc/rc.shutdown? It seems that >>some of my scripts are not being executed when the system shuts down or >>reboots. >> >>-- >>Daniel Rudy >> >>_______________________________________________ >>freebsd-questions@freebsd.org mailing list >>http://lists.freebsd.org/mailman/listinfo/freebsd-questions >>To unsubscribe, send any mail to > > "freebsd-questions-unsubscribe@freebsd.org" > > -- Daniel Rudy