Return-Path: X-Original-To: apmail-stratos-dev-archive@minotaur.apache.org Delivered-To: apmail-stratos-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4D30517843 for ; Sat, 18 Oct 2014 04:37:04 +0000 (UTC) Received: (qmail 27727 invoked by uid 500); 18 Oct 2014 04:37:04 -0000 Delivered-To: apmail-stratos-dev-archive@stratos.apache.org Received: (qmail 27672 invoked by uid 500); 18 Oct 2014 04:37:04 -0000 Mailing-List: contact dev-help@stratos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stratos.apache.org Delivered-To: mailing list dev@stratos.apache.org Received: (qmail 27661 invoked by uid 99); 18 Oct 2014 04:37:04 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Oct 2014 04:37:04 +0000 Received: from localhost (HELO mail-vc0-f181.google.com) (127.0.0.1) (smtp-auth username imesh, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Oct 2014 04:37:02 +0000 Received: by mail-vc0-f181.google.com with SMTP id le20so1506338vcb.12 for ; Fri, 17 Oct 2014 21:37:01 -0700 (PDT) X-Received: by 10.220.14.194 with SMTP id h2mr11138424vca.9.1413607021636; Fri, 17 Oct 2014 21:37:01 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.97.101 with HTTP; Fri, 17 Oct 2014 21:36:41 -0700 (PDT) In-Reply-To: References: From: Imesh Gunaratne Date: Sat, 18 Oct 2014 10:06:41 +0530 Message-ID: Subject: Re: Clean script kills all java processes To: dev Content-Type: multipart/alternative; boundary=001a11c3e1d86077170505ab0881 --001a11c3e1d86077170505ab0881 Content-Type: text/plain; charset=UTF-8 Hi Chamila, Great work, your approach seems to work but it would be better if we keep the process ids at the server startup and then use those to terminate. Otherwise there is a possibility that other Carbon servers or ActiveMQ instances running in the same host. Thanks. On Wed, Oct 15, 2014 at 9:17 PM, Chamila De Alwis wrote: > Thanks Manula! > > > Regards, > Chamila de Alwis > Software Engineer | WSO2 | +94772207163 > Blog: code.chamiladealwis.com > > > > On Wed, Oct 15, 2014 at 9:09 PM, Manula Chathurika Thantriwatte < > manulac@wso2.com> wrote: > >> Hi Chamila, >> >> +1 for the change. I have merged it. >> >> Thanks ! >> >> On Wed, Oct 15, 2014 at 8:14 PM, Chamila De Alwis >> wrote: >> >>> Hi, >>> >>> The clean.sh script that is inside the tools/stratos-installer/ folder >>> kills all the Java related processes. Ideally the script should only stop >>> the Stratos processes and the ActiveMQ process. >>> >>> We can at least be specific to all the carbon related java processes. I >>> created a fix for this and the related PR [1]. It looks for any process >>> that has the String "*org.wso2.carbon.bootstrap.Bootstrap*" and any >>> process which contains the String *"apache-activemq*" to kill. >>> >>> >>> [1] - https://github.com/apache/stratos/pull/93 >>> >>> Regards, >>> Chamila de Alwis >>> Software Engineer | WSO2 | +94772207163 >>> Blog: code.chamiladealwis.com >>> >>> >>> >> >> >> -- >> Regards, >> Manula Chathurika Thantriwatte >> Software Engineer >> WSO2 Inc. : http://wso2.com >> lean . enterprise . middleware >> >> email : manulac@wso2.com / manula@apache.org >> phone : +94 772492511 >> blog : http://manulachathurika.blogspot.com/ >> >> >> >> > -- Imesh Gunaratne Technical Lead, WSO2 Committer & PMC Member, Apache Stratos --001a11c3e1d86077170505ab0881 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Chamila,

Great work, your approach s= eems to work but it would be better if we keep the process ids at the serve= r startup and then use those to terminate. Otherwise there is a possibility= that other Carbon servers or ActiveMQ instances running in the same host.<= /div>

Thanks.

=
On Wed, Oct 15, 2014 at 9:17 PM, Chamila De Alwi= s <chamilad@wso2.com> wrote:
Thanks Manula!

<= br>
Regards,
Chamila de Alwis
Software Engineer | WSO2 | +94772207163
Blog: code.chamiladealwis.com



On Wed, Oct 15= , 2014 at 9:09 PM, Manula Chathurika Thantriwatte <manulac@wso2.com>= wrote:
Hi Chamil= a,

+1 for the change. I have merged it.

Thanks !

On Wed, Oct 15, 2014 at 8:14 PM, Chamila De Alwis <c= hamilad@wso2.com> wrote:
Hi,

The clean.sh script that is inside the = tools/stratos-installer/ folder kills all the Java related processes. Ideal= ly the script should only stop the Stratos processes and the ActiveMQ proce= ss.

We can at least be specific to all the carbon related java= processes. I created a fix for this and the related PR [1]. It looks for a= ny process that has the String "org.wso2.carbon.bootstrap.Bootstrap= " and any process which contains the String "apache-active= mq" to kill.


[1] - https://github.com/apache/stratos= /pull/93

Regards,
Chamila de Alwis
Software Engineer | = WSO2 | +94772207163
Blog: code.chamiladealw= is.com





<= font color=3D"#888888">--
=
= Regards,
Manula = Chathurika Thantriwatte
Software Engineer
WSO2 = Inc. : http://wso2.com
lean . enterprise . middleware

<= /font>
<= span style=3D"color:rgb(153,153,153)">blog : http://manulachathurika.blogspot.com/







--
Imesh Gunaratne

Technical Lead, WSO2
Committer & PMC Member, Apache Stratos
--001a11c3e1d86077170505ab0881--