Nicolas Williams wrote: > On Mon, Feb 05, 2007 at 02:08:39PM -0800, David Bustos wrote: > >> Timing. I think the upgrade method should be executed when the start >> method would ordinarily be executed, so that all of the dependencies are >> ready. Which begs the question of whether any developer would want his >> upgrade method to be executed sooner than when his service would start. >> I think the only reason to do that would be if the configuration were >> being consumed by other entities which could start earlier. I think in >> those cases the other entities should depend on the configuration owner >> anyway. >> > > What if the upgrade method wants to change dependencies? > > I think the upgrade method timing should be different than the start > method timing. > > Perhaps the upgrade method should run twice: once early on in boot > (where manifests are imported) and once right before the service is to > be started. Obviously the method arguments/environment should > distinguish between the two. > > I think the new dependencies should probably be defined in the update manifest. Manifest-import reads the manifest, upgrade method executes then followed by the start method. I agree that consuming entities should depend on the online state of the configuration owner/service.
-tony