[prev in list] [next in list] [prev in thread] [next in thread] 

List:       opensolaris-smf-discuss
Subject:    Re: [smf-discuss] instance creation through libscf api
From:       Srinivas Krishnan <Srinivas.Krishnan () Sun ! COM>
Date:       2007-03-22 8:39:06
Message-ID: 46023DDA.90509 () sun ! com
[Download RAW message or body]

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
>  
>

_______________________________________________
smf-discuss mailing list
smf-discuss@opensolaris.org
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic