Return-Path: X-Original-To: apmail-karaf-dev-archive@minotaur.apache.org Delivered-To: apmail-karaf-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 441131829E for ; Thu, 3 Dec 2015 11:49:53 +0000 (UTC) Received: (qmail 36116 invoked by uid 500); 3 Dec 2015 11:49:50 -0000 Delivered-To: apmail-karaf-dev-archive@karaf.apache.org Received: (qmail 36074 invoked by uid 500); 3 Dec 2015 11:49:50 -0000 Mailing-List: contact dev-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list dev@karaf.apache.org Received: (qmail 36058 invoked by uid 99); 3 Dec 2015 11:49:49 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Dec 2015 11:49:49 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 6E718CC534 for ; Thu, 3 Dec 2015 11:49:49 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.001 X-Spam-Level: * X-Spam-Status: No, score=1.001 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id hI8xtv_OBjY4 for ; Thu, 3 Dec 2015 11:49:36 +0000 (UTC) Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id C492242ADC for ; Thu, 3 Dec 2015 11:49:35 +0000 (UTC) Received: from mfilter28-d.gandi.net (mfilter28-d.gandi.net [217.70.178.159]) by relay3-d.mail.gandi.net (Postfix) with ESMTP id 35F87A80C1 for ; Thu, 3 Dec 2015 12:49:28 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mfilter28-d.gandi.net Received: from relay3-d.mail.gandi.net ([IPv6:::ffff:217.70.183.195]) by mfilter28-d.gandi.net (mfilter28-d.gandi.net [::ffff:10.0.15.180]) (amavisd-new, port 10024) with ESMTP id l2z8oJ9lg8Lh for ; Thu, 3 Dec 2015 12:49:25 +0100 (CET) X-Originating-IP: 82.238.224.4 Received: from [192.168.134.10] (bre91-1-82-238-224-4.fbx.proxad.net [82.238.224.4]) (Authenticated sender: jb@nanthrax.net) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 62E60A80E1 for ; Thu, 3 Dec 2015 12:49:25 +0100 (CET) Subject: Re: Upstart / SystemD scripts To: dev@karaf.apache.org References: <565C1ED9.7030409@nanthrax.net> <565DAB37.9030607@nanthrax.net> <565DB78A.9070506@nanthrax.net> From: =?UTF-8?Q?Jean-Baptiste_Onofr=c3=a9?= Message-ID: <56602C44.3010104@nanthrax.net> Date: Thu, 3 Dec 2015 12:49:24 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Thanks Luca, let me take a look. Regards JB On 12/03/2015 11:43 AM, lb wrote: > Basic Systemd' watchdog implementation in > https://github.com/apache/karaf/pull/114, I appreciate any feedback > > On Tue, Dec 1, 2015 at 4:06 PM, Jean-Baptiste Onofré > wrote: > >> We love contribution ;) >> >> So we take all, populate the contrib ;) >> >> Thanks ! >> Regards >> JB >> >> >> On 12/01/2015 03:24 PM, lb wrote: >> >>> Great. >>> >>> Another additional feature that can be easily added directly in Karaf is >>> support for systemd's watchdog via jnr/jna , if anyone is interested I can >>> submit a PR for this one too >>> >>> On Tue, Dec 1, 2015 at 3:20 PM, Fabian Lange >>> >>> wrote: >>> >>> Wow indeed this is much more than my script :) Thank you for working on >>>> this and especially for sharing! >>>> >>>> Will have a look this week >>>> >>>> Fabian >>>> >>>> On Tue, Dec 1, 2015 at 3:16 PM, lb wrote: >>>> >>>> They are a starting point, I'm sure I've missed something >>>>> >>>>> On Tue, Dec 1, 2015 at 3:14 PM, Jean-Baptiste Onofré >>>>> wrote: >>>>> >>>>> Yes, please, create a Jira. >>>>>> >>>>>> I'm reviewing the PR. >>>>>> >>>>>> Thanks, >>>>>> Regards >>>>>> JB >>>>>> >>>>>> >>>>>> On 12/01/2015 03:06 PM, lb wrote: >>>>>> >>>>>> PR sent https://github.com/apache/karaf/pull/113 >>>>>>> Do you also need a JIRA ? >>>>>>> >>>>>>> On Tue, Dec 1, 2015 at 11:22 AM, lb wrote: >>>>>>> >>>>>>> Very simple, I had some more complex leveraging os functions like >>>>>>> >>>>>>>> start-stop-daemon etc, I will send a PR today so JB/ou can review >>>>>>>> >>>>>>>> On Tue, Dec 1, 2015 at 11:03 AM, Fabian Lange < >>>>>>>> fabian.lange@codecentric.de >>>>>>>> >>>>>>>> wrote: >>>>>>>>> >>>>>>>>> >>>>>>>> Maybe it was filtered because unsafe content :) >>>>>>>> >>>>>>>>> uploaded it to my gists: >>>>>>>>> https://gist.github.com/CodingFabian/90d46cfdce0085ee004c >>>>>>>>> >>>>>>>>> Fabian >>>>>>>>> >>>>>>>>> On Tue, Dec 1, 2015 at 11:01 AM, lb wrote: >>>>>>>>> >>>>>>>>> Hi Fabian, >>>>>>>>> >>>>>>>>>> I do not see the attachment >>>>>>>>>> >>>>>>>>>> On Tue, Dec 1, 2015 at 10:27 AM, Fabian Lange < >>>>>>>>>> >>>>>>>>>> fabian.lange@codecentric.de >>>>>>>>> >>>>>>>>> >>>>>>>>>> wrote: >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> Hi Luca, >>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> I am using the attached script on some systems, which is obviously >>>>>>>>>>> >>>>>>>>>>> very >>>>>>>>>> >>>>>>>>> >>>>>>>>> simple but it works. The problem with upstart is that somehow the >>>>>>>>>> >>>>>>>>> PID >>>> >>>>> tracking does neither work with normal nor fork mode. I have not >>>>>>>>>>> >>>>>>>>>>> narrowed >>>>>>>>>> >>>>>>>>> >>>>>>>>> it down yet. >>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> Fabian >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> On Tue, Dec 1, 2015 at 10:21 AM, lb >>>>>>>>>>> >>>>>>>>>> wrote: >>>> >>>>> >>>>>>>>>>> Hi Fabian, JB, >>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> beside my attempt to migrate the wrapper from Tanuki to YAJSW, >>>>>>>>>>>> >>>>>>>>>>> I'm >>>> >>>>> >>>>>>>>>>>> also >>>>>>>>>>> >>>>>>>>>> >>>>>>>>> working on a set of scripts for systemd, init.d, solaris smf and >>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>>> windows >>>>>>>>>>> >>>>>>>>>> >>>>>>>>> to >>>>>>>>>> >>>>>>>>>>> start karaf without the wrapper so I think it would be nice to >>>>>>>>>>>> >>>>>>>>>>>> collect >>>>>>>>>>> >>>>>>>>>> >>>>>>>>> requirement, attention points and so on in a JIRA and provides such >>>>>>>>>> >>>>>>>>>>> templates in karaf distribution (i.e. in docs/contrib/scripts). >>>>>>>>>>>> >>>>>>>>>>>> What do you think ? >>>>>>>>>>>> >>>>>>>>>>>> Regards, >>>>>>>>>>>> Luca >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> On Mon, Nov 30, 2015 at 11:03 AM, Jean-Baptiste Onofré < >>>>>>>>>>>> >>>>>>>>>>>> jb@nanthrax.net >>>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>>>> wrote: >>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> Hi Fabian, >>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> I added systemd support in JSW wrapper. >>>>>>>>>>>>> >>>>>>>>>>>>> I don't see any blocker to use start/stop/status scripts in >>>>>>>>>>>>> >>>>>>>>>>>> systemd >>>>> >>>>>> >>>>>>>>>>>>> (or >>>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> SystemV). Of course, we can improve those scripts to have a better >>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>>> usage >>>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> via systemd. Please, if you can describe the improvements in a >>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>>> Jira, I >>>>>>>>>>>> >>>>>>>>>>> >>>>>>>>> will >>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>>> enhance it. >>>>>>>>>>>>> >>>>>>>>>>>>> Thanks, >>>>>>>>>>>>> Regards >>>>>>>>>>>>> JB >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> On 11/30/2015 10:56 AM, Fabian Lange wrote: >>>>>>>>>>>>> >>>>>>>>>>>>> Hi, >>>>>>>>>>>>> >>>>>>>>>>>>>> I know that there is extensive support in Karaf for using >>>>>>>>>>>>>> >>>>>>>>>>>>> Tanuki >>>> >>>>> >>>>>>>>>>>>>> to >>>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>> install >>>>>>>>>> >>>>>>>>>>> Karaf as service. >>>>>>>>>>>>>> >>>>>>>>>>>>>> I have received however comments that it is difficult to use >>>>>>>>>>>>>> >>>>>>>>>>>>> the >>>> >>>>> >>>>>>>>>>>>>> existing >>>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> scripts: >>>>>>>>>>>>> >>>>>>>>>>>>>> start/stop/status >>>>>>>>>>>>>> >>>>>>>>>>>>>> in an upstart or systemd manner. >>>>>>>>>>>>>> As far As i can tell one of the problems is how Karaf handles >>>>>>>>>>>>>> >>>>>>>>>>>>>> PIDs. >>>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>> >>>>>>>>>> Does anybody have working scripts? Or can we improve here to >>>>>>>>>>>>>> >>>>>>>>>>>>> make >>>> >>>>> >>>>>>>>>>>>>> this >>>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>> an >>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> option besides Tanuki? >>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> Best regards, >>>>>>>>>>>>>> Fabian >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> -- >>>>>>>>>>>>>> >>>>>>>>>>>>> Jean-Baptiste Onofré >>>>>>>>>>>>> jbonofre@apache.org >>>>>>>>>>>>> http://blog.nanthrax.net >>>>>>>>>>>>> Talend - http://www.talend.com >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> -- >>>>>> Jean-Baptiste Onofré >>>>>> jbonofre@apache.org >>>>>> http://blog.nanthrax.net >>>>>> Talend - http://www.talend.com >>>>>> >>>>>> >>>>> >>>> >>> >> -- >> Jean-Baptiste Onofré >> jbonofre@apache.org >> http://blog.nanthrax.net >> Talend - http://www.talend.com >> > -- Jean-Baptiste Onofré jbonofre@apache.org http://blog.nanthrax.net Talend - http://www.talend.com