For each dependency, whether the dependent service needs to be restarted depends on what value 'restart_on" is set. In your case, if you set it to 'restart' then restart A should restart B given that dependency is still satisfied.
Steve Jordan Brown (Sun) wrote: > We have two services, one of which is dependent on the other. Call them > A and B. B requires that A is running. (For that matter, I think that > A requires that B is running, but we'll ignore that for a moment.) > > If we want to restart both of them, we can do something like > > svcadm disable -s B > svcadm disable -s A > svcadm enable -s A > svcadm enable -s B > > It sure seems like there should be an "svcadm restart" that does the > right thing. I suspect that it's "svcadm restart A". Does that do the > right thing? > > If so, why? > > My guess is that it > > 1) stops B because it depends on A > 2) stops A (because you asked for a restart of A) > 3) starts A (because you asked for a restart of A) > 4) starts B (because it's enabled and its dependencies are running) > > Correct? > _______________________________________________ > smf-discuss mailing list > smf-discuss at opensolaris.org >