Stephen Hahn wrote:
> * Jordan Brown <[EMAIL PROTECTED]> [2008-07-22 23:38]:
>> Is there a theory yet as to the "right" way to replace functionality 
>> currently implemented in SVR4 preremove scripts (or, equivalently, in 
>> RPM %preun scripts)?
> 
>   It depends.  What specific current preremove (or r.* class action)
>   case would you like to consider?

The particular ones that are causing me heartburn today are running

        /opt/SUNWxvmoc/bin/agentadm unconfigure

(I'm not sure exactly what that does, but I think it unplugs modules 
from the Cacao infrastructure and maybe tears down a connection with the 
management server)

and

        /usr/sbin/cacaoadm prepare-uninstall

(I'm not sure what it does, but it probably involves shutting down 
daemons and perhaps removing SMF services.)

The latter comes from the stock Solaris package SUNWcacaort, so it's a 
modularity violation if my uninstaller does the work before doing the 
uninstall.

(Further complexity is caused by the fact that sometimes these packages 
are installed and uninstalled by an installer with provisions for 
plugging in arbitrary code and sometimes by an installer without those 
provisions, and sometimes they are installed as IPS packages and 
sometimes as SVR4 packages.  I think we currently use three of the four 
cases.)

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

Reply via email to