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?
The new "actuators" Bart added are what you want. add file /tmp/when_delivered mode=0677 owner=root group=sys path=/when_delivered suspend_fmri=svc:system/test_suspend_svc disable_fmri=svc:system/test_disable_svc ...there is disable_fmri, enable_fmri, refresh_fmri, restart_fmri, suspend_fmri, and reboot_on_update. There are a few examples in util/distro-import files for build 101a in the pkg gate. -- Shawn Walker _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
