Thanks a lot JB . Thanks, Prithvi
On Mon, Dec 22, 2014 at 8:53 PM, jbonofre [via Karaf] < [email protected]> wrote: > You can create a script (in Karaf) that you use with bin/client (with > shell:source for instance). > > For instance, something like: > > bundles = bundle:list -t 0; each ($bundles) { if { $state equals > "Active" } echo $state } > > or so. > > Regards > JB > > On 12/22/2014 03:38 PM, Prithviraj wrote: > > > Hi JB , > > > > I tried this too , but by this way it is giving current state of > all > > bundles . > > Is there any api which can direct give me this as output ? > > i think StartupListener.java class from karaf jar implemented same > > thing. > > how i can invoke it from script ? > > > > Thanks, > > Prithvi > > > > On Mon, Dec 22, 2014 at 7:51 PM, jbonofre [via Karaf] < > > [hidden email] <http:///user/SendEmail.jtp?type=node&node=4037362&i=0>> > wrote: > > > >> Hi > >> > >> 1/ the bin/start script does exactly as your script > >> 2/ use bin/client script to execute bundle:list -t 0 and check (with a > >> regex) that all bundles are in started state. > >> > >> Regards > >> JB > >> > >> > >> -------- Original message -------- > >> From: Prithviraj <[hidden email] > >> <http:///user/SendEmail.jtp?type=node&node=4037360&i=0>> > >> Date:22/12/2014 14:14 (GMT+01:00) > >> To: [hidden email] < > http:///user/SendEmail.jtp?type=node&node=4037360&i=1> > >> Cc: > >> Subject: Re: Telling whether startup is really complete > >> > >> Hi JB, > >> > >> I tried this , it displayed the message as mentioned in > custom.properties > >> file . > >> Actually it is not solving my problem . > >> My problem statement is like below > >> 1) I have wrote start_karaf.sh file which will invoke start script > >> from > >> {$KARAF_HOME}/bin location . > >> Which internally start the karaf in back ground mode > >> 2) I have other script deploy_apps.sh which will get execute once > >> previous > >> start_karaf.sh script get successfully executed. > >> deploy_app.sh script is for deploying bundles in karaf server. > >> Since start_karaf.sh invoking karaf server in background , i need to > >> know > >> if server is fully started before deploying apps . > >> So i need some mechanism , or commands by which i can come to know > >> server is fully started so that i can start with bundle app > deployment > >> . > >> > >> Thanks in advance for your help . > >> > >> Thanks > >> Prithvi > >> > >> > >> > >> > >> > >> -- > >> View this message in context: > >> > http://karaf.922171.n3.nabble.com/Telling-whether-startup-is-really-complete-tp4025451p4037359.html > >> Sent from the Karaf - Dev mailing list archive at Nabble.com. > >> > >> > >> ------------------------------ > >> If you reply to this email, your message will be added to the > discussion > >> below: > >> > >> > http://karaf.922171.n3.nabble.com/Telling-whether-startup-is-really-complete-tp4025451p4037360.html > >> To unsubscribe from Telling whether startup is really complete, click > >> here > >> < > >> . > >> NAML > >> < > http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > > >> > > > > > > > > > > -- > > View this message in context: > http://karaf.922171.n3.nabble.com/Telling-whether-startup-is-really-complete-tp4025451p4037361.html > > Sent from the Karaf - Dev mailing list archive at Nabble.com. > > > > -- > Jean-Baptiste Onofré > [hidden email] <http:///user/SendEmail.jtp?type=node&node=4037362&i=1> > http://blog.nanthrax.net > Talend - http://www.talend.com > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://karaf.922171.n3.nabble.com/Telling-whether-startup-is-really-complete-tp4025451p4037362.html > To unsubscribe from Telling whether startup is really complete, click > here > <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4025451&code=bWVldHJhajE0QGdtYWlsLmNvbXw0MDI1NDUxfC0yMDU1MjgzMDg0> > . > NAML > <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- View this message in context: http://karaf.922171.n3.nabble.com/Telling-whether-startup-is-really-complete-tp4025451p4037408.html Sent from the Karaf - Dev mailing list archive at Nabble.com.
