Correct. That async part is something I forgot to mention. Thanks - Steve
Liane Praza wrote: > [ does scf_enable_instance() take effect immediately? ] > > steve peng writes: > >> Yes, the prop is updated correctly if the call returns successfully. If >> not then it is a problem and a bug should be >> filed. ;-) >> > > Steve is correct that the value of the enabled property is immediately > changed. However, often people asking this question are really > wondering whether scf_enable_instance() will return only after the > service is in the ONLINE state. > > No, it doesn't. It sets the property and lets the rest of SMF do its > job to get the service started and keep the service alive. > > Currently, an interface which is synchronous to online/disabled is only > formally available through svcadm [en|dis]able -s. I believe there's an > RFE to make the synchronous semantics through libscf, but don't have the > bugid to hand. It'd make a great OpenSolaris RFE, though. :) > > liane >