Re: file sync on close(2)
Re: file sync on close(2)
- Subject: Re: file sync on close(2)
- From: Garth Cummings <email@hidden>
- Date: Tue, 8 Jun 2004 09:07:20 -0700
Hi Jay,
On Jun 7, 2004, at 9:56 PM, Jay A. Kreibich wrote:
>
The reason I ask is this: We've got an OS X box in a very remote
>
location that has pretty flaky power. We've got a UPS, but there are
>
times when even that isn't enough. The problem is if the UPS
>
software shuts down the machine, it will not restart once power comes
>
back. The *only* way to get it to restart is to press the power
>
button, and trust me-- given where this machine is, that's a serious
>
pain the butt. The same behavior is displayed with halt(8) and
>
any other number of commands I've tried.
>
>
So my thought is to modify the UPS scripts to "almost" shut the
>
machine
>
down, and then just let the power fail. The "automatically restart
>
on
>
power failure" should then catch the machine and allow it to come
>
back
>
on its own.
This exact behavior is built in starting with Mac OS X 10.3.3, both
client and server. If your UPS supports the USB Power class the default
behavior should just work (file bugs if not). Third parties will likely
rev their UPS support to use this feature--check with your vendor for
more details.
Thanks,
--gc
__________________________________________________________________
Garth Cummings
Apple Developer Technical Support email@hidden
The Platform. The People. The Possibilities.
Connect at WWDC 2004.
http://developer.apple.com/wwdc
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.