Narendra Kumar S.S wrote: > Hi, > > In my code I am calling smf_enable_instance() to enable and > smf_disable_instance() to disable the filesystem/local service. > > Now, if the previous state is either "Uninitialized" or > "Maintenance" or "Degraded", will the above calls to get the service > enabled/disabled will have any effect? > The smf_restore_instance() function brings an instance cur- rently in the maintenance to the uninitialized state, so that it can be brought back online. For a service in the degraded state, smf_restore_instance() brings the specified instance back to the online state.
smf_disable_instance() will IMO have the expected effect (i.e. bringing the instance to disabled state) regardless of the previous state. Tomas