ramanujan oops wrote: > > > On Fri, Nov 14, 2008 at 9:37 PM, Shawn Walker <[EMAIL PROTECTED] > <mailto:[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 restart_fmri=svc:/system/manifest-import:default
There is no facility to enable a service on installation. - Bart -- Bart Smaalders Solaris Kernel Performance [EMAIL PROTECTED] http://blogs.sun.com/barts "You will contribute more with mercurial than with thunderbird." _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
