From owner-freebsd-questions Sat Jan 1 11:18: 8 2000 Delivered-To: freebsd-questions@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id 7097014C21 for ; Sat, 1 Jan 2000 11:18:06 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.9.3/8.9.3) id NAA00735; Sat, 1 Jan 2000 13:18:02 -0600 (CST) (envelope-from dan) Date: Sat, 1 Jan 2000 13:18:02 -0600 From: Dan Nelson To: Stan Brown Cc: Free BSD Questions list Subject: Re: Shutodwn oreder sequencing info request (second try) Message-ID: <20000101131802.A612@dan.emsphone.com> References: <200001011725.JAA21247@netcom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <200001011725.JAA21247@netcom.com>; from "Stan Brown" on Sat Jan 1 12:25:32 GMT 2000 X-OS: FreeBSD 4.0-CURRENT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Jan 01), Stan Brown said: > i am trying to set up my FreebSD 3.4 STABLE box to work with a ups. > > As a part of this I need to tell the UPS to shutdsown. Obviously this > must be _very late_ in the shutdown sequence. i have just found out by > expiremantation the /etc/rc.shutdow is not late enough :-( (do you now > how long it takes to fsck a 13G disk ?). > > Where in the shutdown sequence should I add this? The disks need to be > dismounted, and / avaialble as read only at this point in time. You'll probably have to write a kernel module for this. It looks like you can tell the kernel to run functions on shutdown; see /sys/kern/kern_shutdown.c . You'll probably want to hook into the "shutdown_final" event. -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message