Lubomir Petrik - Sun Microsystems wrote:
> Hi,
> I was wondering if there's way either in script (stop method itself) or 
> by using libscf in my code to query the reason why the service is 
> calling stop method.
> 
> Basically I'd like to react differently based on whether 'svcadm 
> restart' or 'svcadm disable' caused the stop method to be called. 
> Actually in my case I just want to distinguish restart from other 
> reasons of invocating the stop method.
> 
> Is there a way?
> 

Probably :^) Can you provide more information on the use case? There may 
be a more generic way to do what you want.

-tony

Reply via email to