On Fri, Jan 16, 2009 at 02:55:12PM +0100, Jochen wrote:
> I build the package by using pkgsend in this order
> 
> 1. the smf service
> 2. file A restart_fmri=service
> 3. file B restart_fmri=service
> 
> During install the service will be invoked once  file A and B are 
> installed. This does not work currently because of issue
> 5597 service update failure during install

IMO that's how it should work, BUT...

> Uninstallation happens in reverse. So I assume the behaviour is this:
> 
> 1. file B is removed
> 2. file A is removed
> 3. the service is restarted (stop/start) and then disabled
> 4. the service is removed
> 
> In my case the service expects that  A and B are already removed.

The problem here is when IPS is working on a non-booted image.  IPS
can't do (3) in that case, and you can't expect (3) to happen at boot
time if (4) happens at pkg uninstall time.

A solution we've talked about before is to have another service just to
run the self-assembly parts of other packages.

So each pluggable framework (PAM, GSS, SASL, GNOME, ...), for example,
could have a service to handle plug-in registrations/unregistrations.

I've also posted a prototype of a start method for a special service to
run SVR4 class action scripts, postinstall, and postremove scripts on
behalf of IPS packages that have been converted from SVR4 packages.  You
can model your service on my prototype.

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

Reply via email to