I'm working on the SMF conversion of acctadm, part of which is getting 
rid of /etc/init.d/acctadm and /etc/acctadm.conf by creating a transient 
service and moving the configuration data into the smf(5) repository.

Initial install would be easy since the service manifest inserts all 
required properties with default values into the repository at manifest 
import time. However, on upgrade I need to migrate any customizations to 
/etc/accadm.conf made by the administrator. Is there a current best 
practice to accomplish this? How can I access the repository during 
upgrade (if at all)? My preferred option would be to migrate the 
configuration in the postinstall script (having some sort of upgrade 
logic in acctadm(1M) seems yucky at best). Pointers to prior art much 
appreciated.

Menno

-- 
Menno Lageman                      http://blogs.sun.com/menno
Sun Microsystems

Reply via email to