apologies, didn't quite phrase my Q correctly, so just to rephrase my original question.
how do i enable a disabled smf service using IPS ? the IPS pkg created below does the following > installs /etc/inet/ntp.conf - works > installs /var/svc/manifest/network/ntp.xml (with svc:...ntp enabled) - works > enable ntp - doesn't work > restart ntp service (only works if svc is already enabled) - so this partly > works also, pkg uninstall removes the two files (ntp.conf and ntp.xml) completely that leaves the ntp svc in maintenence mode. so how i ... > do a pre-remove step to properly disable ntp svc before removing the pkg. > do post-remove type function to restoring the originals back Is there a faq list for this topic ? maybe i need to upgrade my thought process from svr4 to IPS first :) regards ..Vikram -- Regards and best wishes from Unix-R-Us ________________________________ From: Vikram Dutta <unix...@yahoo.com> To: Open Install <install-discuss at opensolaris.org> Sent: Wednesday, March 11, 2009 6:11:58 PM Subject: [install-discuss] Simple IPS pkg- to update ntp.conf and re-start the service I am trying to create a simple my-ntp pkg that will update /etc/inet/ntp.conf and take the necessary actions to enable ntp and/or restart the ntp smf service. What am I missing here ?. $ eval `pkgsend -s http://127.0.0.1:10000open my-ntp at 3.0-2` $ pkgsend add file etc/inet/ntp.conf mode=0555 owner=root group=bin \ path=etc/inet/ntp.conf restart_fmri=svc:/network/ntp:default $ pkgsend add file var/svc/manifest/network/ntp.xml mode=0444 owner=root group=sys \ path=var/svc/manifest/network/ntp.xml restart_fmri=svc:/system/manifest-import:default $ pkgsend add set name=description value="add ntp.conf and start it" $ pkgsend add set name=info.classification value="com.somename.2008:TimeInfra/testing" $ /usr/bin/pkgsend -s http://127.0.0.1:10000close Any pointers are apreciated. best regards, ..Vikram -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/install-discuss/attachments/20090311/7c9a8fda/attachment.html>