James Carlson wrote:
> Brian Utterback writes:
>> I have a customer that is installing a UPS on there system. The 
>> installation instructions (written prior to Solaris 10) to insert some 
>> lines into /sbin/rc0 near the end which tell the UPS to cut the power. 
> 
> Ew!  That was never right, even before S10.  /sbin/rc0 was delivered
> as a type 'f' file in packaging.  It's not an administrative
> interface, and the contents can be overwritten without warning or
> recourse by system upgrade or patching.
> 

Funny, that is what I told them almost word for word. Except without 
the "Ew!" part.


>>   The problem is that on Solaris 10, the rc0 script isn't run at 
>> shutdown, only startup. Is there a hook or script or method or 
>> something that will allow the customer to run the necessary commands 
>> at or near the end of a system shutdown?
> 
> /etc/rc0.d/K99ups, maybe?

My understanding is that the legacy scripts run first, not last. Since 
the effect of this command is to cut power, that probably won't do it.


-- 
blu

There are two rules in life:
Rule 1- Don't tell people everything you know
----------------------------------------------------------------------
Brian Utterback - Solaris RPE, Sun Microsystems, Inc.
Ph:877-259-7345, Em:brian.utterback-at-ess-you-enn-dot-kom

Reply via email to