Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Jan 2000 13:18:02 -0600
From:      Dan Nelson <dnelson@emsphone.com>
To:        Stan Brown <stanb@netcom.com>
Cc:        Free BSD Questions list <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Shutodwn oreder sequencing info request (second try)
Message-ID:  <20000101131802.A612@dan.emsphone.com>
In-Reply-To: <200001011725.JAA21247@netcom.com>; from "Stan Brown" on Sat Jan  1 12:25:32 GMT 2000
References:  <200001011725.JAA21247@netcom.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000101131802.A612>