I'm not currently using a StartupItem, but I could. But then the question is 
how do I make sure that at shutdown time its the last StartupItem to get run, 
and that when it is run the filesystems are synced and read only.

I'm using an APC SmartUPS 3000. The reason I'm using nut instead of the built 
in OS X stuff is that I need to shutdown a few othr machines (mac and linux) 
that also get power from the UPS. As a alternate solution I could connect the 
ups monitoring port to one of the linux boxes, but for reasons to complicated 
to explain that's far from ideal. 

-----Original Message-----
From: "Charles Lepple" <[EMAIL PROTECTED]>
To: "Jason Ferrara" <[EMAIL PROTECTED]>
Cc: [email protected]
Sent: 3/10/06 10:58 AM
Subject: Re: [Nut-upsuser] nut on Mac OS X. Where to put upsdrvctl shutdown?

On 3/9/06, Jason Ferrara <[EMAIL PROTECTED]> wrote:
> I've installed nut on a Mac OS X machine (XServe running Mac OS X
> 10.3.9). It all seems to work fine except.....
>
> I can't figure out where to put the upsdrvctl shutdown command in
> order to get the ups to cut power after the computer shuts down.
> There doesn't seem to be any sort of script that gets run at shutdown
> time.

Are you using a StartupItem? I thought I remembered this working under
10.2, but my G4 Cube is now running Linux, and the other mac is a
laptop, so I mostly use NUT for monitoring under OS X.

Out of curiosity, what UPS are you using? OS X is pretty good at
detecting common HID PDC UPSes, and it has its own shutdown system.
One of these days, I might try writing a NUT meta-driver that hooks
into the OS X power management API. It wouldn't return much info, but
it would push the low-battery shutdown functionality back to the OS.

--
- Charles Lepple


_______________________________________________
Nut-upsuser mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser

Reply via email to