On Mon, Jun 02, 2008 at 11:47:09AM -0400, James Carlson wrote:
> > It does sound like this should be a hook in /sbin/uadmin or in the
> > kernel...
> 
> I disagree on the /sbin/uadmin part.  The key architectural feature of
> the uadmin(2) system call (and the related /sbin/uadmin utility) is
> that it interacts with the kernel directly: you tell it to reboot, and
> it surely does that.  It doesn't fuss with anything else.  If you
> didn't want that behavior, then you should use the more clearly
> documented halt(1M) and related administrative interfaces.

You can ask that the system poweroff.  That's the only time that one
should want to have the UPS cut power, no?  So that's my rationale for
doing this in uadmin.

Nico
-- 

Reply via email to