I'm trying to revamp my packages to work better in zones.  Currently
they use groupadd and useradd, like so:
%pre
/usr/sbin/groupadd -g 27 mysql
/usr/sbin/useradd -u 27 -d /var/lib/mysql -s /bin/false -G mysql mysql
and to add or remove services, I have lines like this in my spec files:
%post
/usr/sbin/svccfg -v import /var/svc/manifest/network/smtp-sendmail.xml

%preun
svcadm disable svc:/network/smtp:sendmail
svcadm disable svc:/network/smtp:client-queue
sleep 1
/usr/sbin/svccfg delete -f svc:/network/smtp:sendmail
/usr/sbin/svccfg delete -f svc:/network/smtp:client-queue

Unfortunately, these both misbehave to some degree when zones are
installed.  Users are not created when the zones are installed, and
some services are apparently not installed.  Is there a standard way
to do these tasks so that zones behave better?

Thanks!
Will
_______________________________________________
zones-discuss mailing list
zones-discuss@opensolaris.org

Reply via email to