ramanujan oops wrote: > Hi, > > We are looking at delivering a 'single-use' script delivered with > the package that gets executed by SMF. > > While uninstalling the package, we need this 'single-use' script to be > executed by SMF to remove any crontab's that the user would have > created for the application. > > In SVR4 form, we had earlier started/stopped a service via the > postinstall/preremove scripts of our application. But now that IPS > doesn't support these installer scripts, we are looking for mechanisms > to enable/disable our SMF. > > Even if we have our manifest, how/when do we start it in IPS > installation? Can you kindly provide us some pointers in getting this > done?
If you are trying enable an SMF service on install and disable it on removal, you can use the actuators Shawn described. If you want to add something to crontab on install and remove something when your package is removed, I don't think an SMF service is what you are looking for. SMF isn't a replacement for packaging scripts. It might be able to handle the first part (installation) fine, but the second part (removal) is a lot harder. Dave _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
