* Keyur Desai <Keyur.Desai at Sun.COM> [2007-06-08 09:14]: > > Need a recommendation. During pkgrm, some preremove scripts > in Solaris disable the associated SMF service, and some > just give a warning and fail pkgrm. Users must manually > disable the associated SMF service (via "svcadm disable") and then > proceed to remove the package. > > Is there any best practice around this ?
It's my position that a manual package removal of an enabled service should be classed as a mistake, and blocked. An evaluation whether this position is an actual best practice is difficult, since it would require knowing how many times an incorrect removal was stopped by the restriction--and not just how many inconveniences it's raised. (In a de-installer, or other higher level package manipulator, it's easy to write code that leads to the convenient outcome, of course.) - Stephen -- sch at sun.com http://blogs.sun.com/sch/