On Thu, Jan 15, 2009 at 11:16:25AM -0800, Danek Duvall wrote:
> On Thu, Jan 15, 2009 at 09:05:17AM +0100, Joachim Lingner wrote:
> 
> > Thanks Danek for clarifying. But one last question. You state that the
> > service runs asynchronously. But is this also the case when uninstalling?
> > If so, could it happen that the service itself  is being uninstalled
> > before it has been run?
> 
> On uninstallation, services are disabled before files are removed, so
> anything required to shut the service down will still be around when we do
> so.

What if the image isn't booted?  If the service is removed then there
won't be a chance to run its stop method on boot since it won't be
there.

This makes me think that a service (or three, for diff dependencies)
that can run postinstall/postremove-like scripts would be very good
indeed.  The prototype I had for doing this for IPS pkgs converted from
SVR4 would save any postremove scripts in a private directory so that
they could be run at boot time even though the pkg that had delivered
them is gone.

So now I'm thinking that that prototype is relevant not just to
SVR4->IPS migration but rather more generally.

Nico
-- 
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to