There is no status method in carbon servers. ps -ef | grep server_name is my way of checking it. If there is something wrong, error logs should be printed.
On Wed, Apr 9, 2014 at 6:12 PM, chris snow <[email protected]> wrote: > Ah, sounds good. > > Do the stratos setup scripts call "stop" before they start doing any > setup to make sure there isn't already a server running? > > I see there isn't a status method (e.g. like activemq status), what is > the normal way you check for the server status with carbon? > > > On Wed, Apr 9, 2014 at 6:31 PM, Akila Ravihansa Perera > <[email protected]> wrote: > > Hi Chris, > > > > Since we have a single product + MB, I don't see the value in a separate > > start/stop script. Because "stratos.sh" script is already capable of > > performing start, stop, restart, debug operations on Stratos. Only > exception > > is MB which needs to be started manually. > > > > Could you kindly explain the expected functionality in the start/stop > > script? > > > > > > Regards, > > > > > > On Wed, Apr 9, 2014 at 7:42 PM, chris snow <[email protected]> wrote: > >> > >> Hi Akila - what is the status of the start/stop scripts? > >> > >> On Thu, Apr 3, 2014 at 10:29 AM, Akila Ravihansa Perera > >> <[email protected]> wrote: > >> > Hi, > >> > > >> > @Nirmal: Sure, I'll start working on that :) > >> > > >> > In addition to a stop_server.sh script I think it would be better if > we > >> > can > >> > create a new service for Stratos like Chris mentioned. Shall we add > this > >> > function to "setup.sh" script? > >> > > >> > Basically the function will copy the startup script; eg - > >> > /etc/init.d/apache-stratos, and it will have start, restart, stop, > >> > status > >> > operations. > >> > But there are lot of products that runs under Apache Stratos (cc, mb, > lb > >> > etc). Do we need to create scripts for each products separately OR > >> > bundle > >> > all that together to a single script? > >> > > >> > Thanks > >> > > >> > > >> > On Thu, Apr 3, 2014 at 2:37 PM, chris snow <[email protected]> > wrote: > >> >> > >> >> A script that in turn could be called from init.d script would be > >> >> great! > >> >> > >> >> On Thu, Apr 3, 2014 at 10:04 AM, Nirmal Fernando > >> >> <[email protected]> > >> >> wrote: > >> >> > Thanks for bringing this up. In fact, I think we need a > >> >> > stop_servers.sh > >> >> > which will gracefully shut down all the servers that has been > >> >> > started. > >> >> > > >> >> > @Akila would you be able to contribute such a script? :-) > >> >> > > >> >> > > >> >> > On Thu, Apr 3, 2014 at 2:15 PM, Akila Ravihansa Perera > >> >> > <[email protected]> > >> >> > wrote: > >> >> >> > >> >> >> Hi, > >> >> >> > >> >> >> Is there a cleaner way to stop Apache Stratos servers? I started > the > >> >> >> servers by running <stratos-setup>/start_servers.sh. But this will > >> >> >> start all > >> >> >> products like cc,mb,cep etc. But when I need to stop these > servers I > >> >> >> have to > >> >> >> manually find them through "ps" command and kill them. > >> >> >> > >> >> >> Is there a better way to do this? Or am I doing something wrong at > >> >> >> the > >> >> >> first place? > >> >> >> > >> >> >> Thanks. > >> >> >> > >> >> >> -- > >> >> >> Akila Ravihansa Perera > >> >> >> Software Engineer > >> >> >> WSO2 Inc. > >> >> >> http://wso2.com > >> >> >> > >> >> >> Phone: +94 77 64 154 38 > >> >> >> Blog: http://ravihansa3000.blogspot.com > >> >> > > >> >> > > >> >> > > >> >> > > >> >> > -- > >> >> > Best Regards, > >> >> > Nirmal > >> >> > > >> >> > Nirmal Fernando. > >> >> > PPMC Member & Committer of Apache Stratos, > >> >> > Senior Software Engineer, WSO2 Inc. > >> >> > > >> >> > Blog: http://nirmalfdo.blogspot.com/ > >> >> > >> >> > >> >> > >> >> -- > >> >> Check out my professional profile and connect with me on LinkedIn. > >> >> http://lnkd.in/cw5k69 > >> > > >> > > >> > > >> > > >> > -- > >> > Akila Ravihansa Perera > >> > Software Engineer > >> > WSO2 Inc. > >> > http://wso2.com > >> > > >> > Phone: +94 77 64 154 38 > >> > Blog: http://ravihansa3000.blogspot.com > >> > >> > >> > >> -- > >> Check out my professional profile and connect with me on LinkedIn. > >> http://lnkd.in/cw5k69 > > > > > > > > > > -- > > Akila Ravihansa Perera > > Software Engineer > > WSO2 Inc. > > http://wso2.com > > > > Phone: +94 77 64 154 38 > > Blog: http://ravihansa3000.blogspot.com > > > > -- > Check out my professional profile and connect with me on LinkedIn. > http://lnkd.in/cw5k69 > -- Udara Liyanage Software Engineer WSO2, Inc.: http://wso2.com lean. enterprise. middleware web: http://udaraliyanage.wordpress.com phone: +94 71 443 6897
