Hi Jean, > >> >>>>> >>>>> *service_enable_attempt() >>>>> -Why do we not wait or verify the service has been enabled here, >>>>> but we do in check_for_enabled_services when we transition it to >>>>> maintenance? >>>> >>>> I'll need to confirm why with Jean on this one. >>>> > In check_for_enabled_services we are explicitely sending it into > maintenance and not doing an enable. Thus, the > code in svc-install-server doesn't get executed. This is important > because that code does an installadm start <svcname> > which tries to enable the smf service. We want to wait for the > maintenance status to hit to make sure that the smf > service has "settled out" before moving on and doing the > service_enable_attempt. > > When we do the calls for service_enable_attempt we are trying to > enable the service. This sends it offline while the > the svc-install-server code is run which tries to enable the service > which ...... and we get stuck in recursion if we wait. > i.e. we never get out of offline. I don't believe waiting buys us > anything either. Just more of an impression of a hang. > ok, thanks for the explanation. What happens if the service doesn't get enabled successfully? Does the install fail?
thanks, sarah *** > Jean > >
