Nicolas Williams writes:
> On Mon, Jun 02, 2008 at 12:38:22PM -0400, James Carlson wrote:
> Though even so, if /sbin/uadmin can run, then so can user-land code (in
> /) run to tell inform the UPS, IF it's simple enough.  The same
> arguments you make against this applies to this being a hook in SMF!

Not exactly.  Some things (such as, say, using libusb with any modern
UPS) are far simpler from user space.

> > I suspect the service method is going to be much easier to code and
> > maintain, though the 5 second timer seems gross.
> 
> I think we basically agree, you just don't know it yet ;)

I don't think that's quite true.  I agree about the precision in
shutting off the UPS at the same point where you'd cut your own power,
but not about the design of this kernel module.

I'm thinking about (for instance) 'nut'.  I've been using this for a
while on my Solaris system at home, and it works well, but I don't
quite see how I'd _easily_ tie a new kernel module into all of those
per-UPS-vendor user space modules.  Somehow, that "turn me off" signal
has to get sent to the UPS in the native language of the UPS.  It
turns out that there are no standards here -- even among different
models from the same manufacturer.

-- 
James Carlson, Solaris Networking              <james.d.carlson at sun.com>
Sun Microsystems / 35 Network Drive        71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677

Reply via email to