Thank you.  Would it be possible for a service to automatically disable
itself if it fails to start?

-Marcel

David Bustos wrote On 05/19/06 14:01,:

>Quoth Marcel Widjaja on Thu, May 18, 2006 at 02:49:59PM -0700:
>  
>
>>How do I start a service or demon at run level 2 using SMF? My service
>>manifest contains the following dependency:
>>
>>         <dependency
>>                name='multi-user'
>>                grouping='require_all'
>>                restart_on='none'
>>                type='service'>
>>                <service_fmri value='svc:/milestone/multi-user' />
>>        </dependency>
>>
>>Is this correct?
>>    
>>
>
>No.  If you're taking a service out of rc2.d, then you need to have
>a dependency on milestone/single-user, and you need to declare
>milestone/multi-user as a dependent (not a dependency).  This will
>ensure that you start after the rcS.d scripts, before any rc2.d scripts
>which may depend on you (though before any rc2.d scripts which you may
>depend on, so you can only do this if your rc2.d dependencies have also
>been adapted to SMF), and that you will run if the user executes
>'init 2' or 'svcadm milestone multi-user'.
>
>
>David
>  
>

Reply via email to