From owner-freebsd-questions Tue Nov 5 12:22:45 2002 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 1F09437B482 for ; Tue, 5 Nov 2002 12:22:41 -0800 (PST) Received: from casper.sri.com (casper.SRI.COM [128.18.243.12]) by mx1.FreeBSD.org (Postfix) with SMTP id 9290F43E7B for ; Tue, 5 Nov 2002 12:22:40 -0800 (PST) (envelope-from hogsett@csl.sri.com) Received: (qmail 15057 invoked from network); 5 Nov 2002 20:26:28 -0000 Received: from localhost (HELO casper.SRI.COM) (127.0.0.1) by casper.sri.com with SMTP; 5 Nov 2002 20:26:28 -0000 Received: from quarter.csl.sri.com ([130.107.1.30]) by casper.SRI.COM (NAVGW 2.5.2.17) with SMTP id M2002110512262713920 ; Tue, 05 Nov 2002 12:26:27 -0800 Received: from axp.csl.sri.com (axp.csl.sri.com [130.107.2.30]) by quarter.csl.sri.com (8.12.4/8.12.4) with ESMTP id gA5KMWnr013268; Tue, 5 Nov 2002 12:22:32 -0800 Received: from axp.csl.sri.com (localhost [127.0.0.1]) by axp.csl.sri.com (8.12.6/8.12.3) with ESMTP id gA5KMV1J037280; Tue, 5 Nov 2002 12:22:31 -0800 (PST) (envelope-from hogsett@axp.csl.sri.com) Message-Id: <200211052022.gA5KMV1J037280@axp.csl.sri.com> To: "Carlos Carnero" , "DaleCo Help Desk" Cc: freebsd-questions@freebsd.org Subject: Re: Junior hacker assignment :o In-Reply-To: Your message of "Tue, 05 Nov 2002 14:14:26 CST." <01ca01c28507$f187a860$fa00a8c0@DaleCoportable> Mime-Version: 1.0 (generated by tm-edit 8.8 (Time Passed Me By)) Content-Type: text/plain; charset=US-ASCII Date: Tue, 05 Nov 2002 12:22:31 -0800 From: Mike Hogsett Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > ----- Original Message ----- > From: "Carlos Carnero" > To: "DaleCo Help Desk" ; "FreeBSD Questions" > > Sent: Tuesday, November 05, 2002 2:07 PM > Subject: Re: Junior hacker assignment :o > > > > Hello, > > > > --- DaleCo Help Desk wrote: > > > I suppose you want to read the code in > > > /usr/src/sbin/shutdown/shutdown.c > > > > in the (appropiately named? :) function > > die_you_gravy_sucking_pig_dog() rebooting means > > sending init a INT signal... I'll heck init (and > > that's kernel turf right?) > > > > Thanks a lot, > > Carlos. > > > Is that 'check init' or 'hack init'? > > > I might just alter shutdown so it took an > additional argument to -r---- along the lines > of shutdown -r [when-die] [when-resurrect] > > > .....but I'm just a converted Windoze Luser and > amateur sysadmin, so you're getting beyond me > here. If the OS is shut down, then the kernel's shut down, > right, and how's it gonna count seconds 'til Resurrection Day? Well whatever function the kernel is in while it loops, polling the keyboard asking "press any key to reboot" could have additional logic for a countdown timer to reboot. How and where to do this? I don't know. Good Luck, - Mike To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message