From owner-freebsd-questions@FreeBSD.ORG Mon Feb 23 11:50:31 2004 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 A49E916A4CF for ; Mon, 23 Feb 2004 11:50:31 -0800 (PST) Received: from carrick.bishnet.net (carrick.bishnet.net [217.204.9.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7C39F43D2F for ; Mon, 23 Feb 2004 11:50:31 -0800 (PST) (envelope-from dom@bishnet.net) Received: from cpc2-warw1-3-0-cust35.brhm.cable.ntl.com ([80.5.185.35] helo=mail.dom.bishnet.net ident=mailnull) by carrick.bishnet.net with esmtp (TLSv1:AES256-SHA:256) (Exim 4.30; FreeBSD) id 1AvM5y-000IKD-Oz for freebsd-questions@FreeBSD.ORG; Mon, 23 Feb 2004 19:50:27 +0000 Received: from monster.dom.bishnet.net ([192.168.3.100] helo=monster) by mail.dom.bishnet.net with esmtp (Exim 4.30; FreeBSD) id 1AvM5x-0000rQ-TQ for freebsd-questions@FreeBSD.ORG; Mon, 23 Feb 2004 19:50:25 +0000 From: "Dominic Bishop" To: Date: Mon, 23 Feb 2004 19:54:06 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Thread-Index: AcP6RsuG82zruBHSTOSdSp9J8Ls28g== X-Bishnet-MailScanner-Information: Contact postmaster@bishnet.net X-Bishnet-MailScanner-VirusCheck: Found to be clean Message-Id: <20040223195031.7C39F43D2F@mx1.FreeBSD.org> Subject: kern.shutdown_timeout sysctl X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Feb 2004 19:50:31 -0000 I just tried setting the value of the kern.shutdown_timeout sysctl and it failed with: sysctl: unknown oid 'kern.shutdown_timeout' I am trying to increase the maximum time allowed for rc.shutdown to run for reasons explained in my previous post "Help needed modifying shutdown scripts" >From the source code of init (ie init.c) it clearly reads the value of this sysctl to override the default of 2 minutes: if (sysctlbyname("kern.shutdown_timeout", &shutdowntimeout, &len, NULL, 0) == -1 || shutdowntimeout < 2) shutdowntimeout = DEATH_SCRIPT; But it appears that in reality this sysctl value doesn't exist, I looked through sysctl.h and couldn't see it in there either. Can I assume this is a bug and one or the other bit is wrong? And is there anyway to fix this? If it comes to it I can just override the default 2 minutes by altering the #define in init.c but I would prefer to not hack the source and have to re-edit after every src cvsup, especially since the sysctl would provide a much neater way of accomplishing it. Regards, Dominic Bishop