On Fri, Nov 14, 2008 at 9:37 PM, Shawn Walker <[EMAIL PROTECTED]>wrote:
> 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 I tried setting up a service using the above mentioned actuators, however, my service would never get enabled! # eval `pkgsend -s http://localhost:12000 open [EMAIL PROTECTED] // Here i try to add the script that would be called by my service # pkgsend -s http://localhost:12000 add file /usr/ra201468/durba_SMF/svc-cron_remove mode=0755 owner=root group=bin path=/lib/svc/method/svc-cron_remove // Now, I'm trying to add the xml manifest and set it as "enabled" # pkgsend -s http://localhost:12000 add file /usr/ra201468/durba_SMF/cron_remove.xml mode=0755 owner=root group=bin path=/var/svc/manifest/application/cronremove.xml enable_fmri=svc:application/cronremove The package gets published and when I install, there is no svcs in application/cronremove. Did I go wrong somewhere? May be, I'm not using the actuators correctly? Please provide inputs here.. thanks, Ram > > ...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
