David Bustos wrote: >First, I agree with everything Alan has said. > >Quoth Yifan Xu on Thu, Dec 11, 2008 at 05:49:25PM +0800: > > >>Sounds making sense to me. I am not sure I understand the role of the >>default instance correctly. In what case a service would have a default >>instance and at the same time some other specific instances under it? >> >> > >Usually when the developer wants to supply a default configuration, but >it makes sense for administrators to run multiple daemons with different >configurations. >
I see. >>If there are other ways that the vrrp daemon could get notifications, I >>agree that we don't have to rely on the smf dependency mechanism. >> >> > >You should be able to use "svcprop -w -p restarter/state" to wait until >a service's state changes. We also have library interfaces, though >they're private and you'd have to agree to a contract to use them. > > > I guess you are talking about _scf_pg_wait(). I took a look at it and it seems to satisfy the need. I have no problem using a contract if needed. If the dependency mechanism is not required any more, do you think it is still necessary to create dynamic smf instances for vrrp instances? Thanks, Yifan