Thank you for  the reply.

Currently the smf_[enable|disable]_instance() calls are asynchronous. But
svcadm enable -s svc_name, makes it a synchronous call and returns only 
after service is started.  What is the libscf api for svcadm enable -s 
option.

Thanks
Srinivas
Liane Praza wrote:

>Srinivas Krishnan writes:
>  
>
>>I am creating a instance using scf_service_add_instance does not create 
>>general and restarter property groups by default. If i import the xml 
>>file into the repository using svccfg command, general and restarter 
>>property groups are getting created.
>>
>>Is there a way to create general and restarter property groups by 
>>default or these needs to be created by using libscf api's.
>>    
>>
>
>smf_[enable|disable]_instance() should create the general property
>group.
>
>You should never create the restarter property group -- it's created by
>the service's restarter.
>
>liane
>  
>


Reply via email to