Return-Path: X-Original-To: apmail-ace-dev-archive@www.apache.org Delivered-To: apmail-ace-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 517211177D for ; Thu, 11 Sep 2014 07:17:38 +0000 (UTC) Received: (qmail 86940 invoked by uid 500); 11 Sep 2014 07:17:38 -0000 Delivered-To: apmail-ace-dev-archive@ace.apache.org Received: (qmail 86916 invoked by uid 500); 11 Sep 2014 07:17:38 -0000 Mailing-List: contact dev-help@ace.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ace.apache.org Delivered-To: mailing list dev@ace.apache.org Received: (qmail 86891 invoked by uid 99); 11 Sep 2014 07:17:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Sep 2014 07:17:37 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of marcel.offermans@luminis.eu designates 157.55.234.120 as permitted sender) Received: from [157.55.234.120] (HELO emea01-db3-obe.outbound.protection.outlook.com) (157.55.234.120) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Sep 2014 07:17:33 +0000 Received: from [IPv6:2001:983:ef07:1:2df7:6526:ffd9:3662] (2001:983:ef07:1:2df7:6526:ffd9:3662) by AMXPR03MB264.eurprd03.prod.outlook.com (10.242.69.149) with Microsoft SMTP Server (TLS) id 15.0.1029.13; Thu, 11 Sep 2014 07:17:10 +0000 From: Marcel Offermans Content-Type: multipart/alternative; boundary="Apple-Mail=_087688DE-AD99-47DB-8A1A-897E9F4130CB" Message-ID: <52B256C4-D0EE-421C-A60C-C29E5EC2CD28@luminis.eu> MIME-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: Adding Shutdown Hook for Agents?? Date: Thu, 11 Sep 2014 09:17:07 +0200 References: To: ACE-dev Apache ACE developers In-Reply-To: X-Mailer: Apple Mail (2.1878.6) X-Originating-IP: [2001:983:ef07:1:2df7:6526:ffd9:3662] X-ClientProxiedBy: AM3PR06CA052.eurprd06.prod.outlook.com (10.141.192.170) To AMXPR03MB264.eurprd03.prod.outlook.com (10.242.69.149) X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;UriScan:; X-Forefront-PRVS: 03319F6FEF X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(51704005)(199003)(24454002)(377454003)(189002)(85852003)(83072002)(77156001)(77982001)(74662001)(97736003)(74482001)(31966008)(74502001)(79102001)(88136002)(69556001)(76176999)(104166001)(102836001)(80022001)(71186001)(87976001)(89996001)(81542001)(81342001)(50226001)(36756003)(4396001)(101416001)(512954002)(19617315012)(90102001)(95666004)(19580405001)(19580395003)(83322001)(15975445006)(105586002)(82746002)(87286001)(83716003)(85306004)(42186005)(84326002)(99396002)(21056001)(107046002)(76482001)(93916002)(57306001)(86362001)(92726001)(33656002)(50986999)(64706001)(46102001)(92566001)(20776003)(110136001)(15202345003)(77096002)(62966002)(107886001)(106356001)(104396001);DIR:OUT;SFP:1102;SCL:1;SRVR:AMXPR03MB264;H:[IPv6:2001:983:ef07:1:2df7:6526:ffd9:3662];FPR:;MLV:sfv;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-OriginatorOrg: luminis.eu X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_087688DE-AD99-47DB-8A1A-897E9F4130CB Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="us-ascii" Hello Niclas, On 10 Sep 2014, at 10:47 am, Niclas Hedhman wrote: > A long time ago I was a mentor of this project, and now I am actually = using > it in $dayjob application. What goes around, comes around... ;-) Welcome back! :) > The deployment is happening on Linux 'devices' and we need to support = that > the ACE Targets are shutdown via Linux SIGINT (Ctrl-C), i.e. we need a = JVM > shutdown hook that do framework.stop(). Fairly simple... >=20 > It seems logical that this functionality is part of ACE itself, and I = am > adding this at the moment. There are 3 choices on this, and I would > appreciate your thoughts; > 1. The shutdown hook is always present, > 2. It is enabled via command-line arguments, > 3. It is enabled via launcher.properties. >=20 > which route should be taken? I see no reason why we should not always have it present, so unless = someone can come up with a good reason not to, I'd say keep it simple = and always have this enabled. > I would also like to contribute this back, >=20 > a. I have mostly forgotten how to submit patches with SVN, but recall > that there were often issue with it. Is there a page explaining the = exact > details? Our page explaining how to submit a patch is rather brief: http://ace.apache.org/get-involved/issue-tracking.html I'm sure Google will be able to remind you how to create a patch file. = If you attach that to an issue, we can review and apply it. > b. We will also make a Linux daemon shell that starts and stops = agents, > and in the stop it will both issue the SIGINT and if the process isn't > dying 'soon enough', a SIGKILL will be issued to ensure death and > destruction. Is ACE community interested in making such script part of = the > the 'target' ? Or will that forever remain the responsibility of the = user > to put together? I'll speak for myself, I think this would be interesting to provide to = our users. At the very least it serves as a good example of how to do = this. Greetings, Marcel --Apple-Mail=_087688DE-AD99-47DB-8A1A-897E9F4130CB--