From owner-freebsd-testing@freebsd.org Thu Jun 25 19:49:32 2015 Return-Path: Delivered-To: freebsd-testing@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3186498D136; Thu, 25 Jun 2015 19:49:32 +0000 (UTC) (envelope-from gnn@neville-neil.com) Received: from vps.hungerhost.com (vps.hungerhost.com [64.131.64.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0B5851260; Thu, 25 Jun 2015 19:49:31 +0000 (UTC) (envelope-from gnn@neville-neil.com) Received: from cpe-74-71-192-171.nyc.res.rr.com ([74.71.192.171]:35748 helo=[10.0.1.68]) by vps.hungerhost.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.85) (envelope-from ) id 1Z8D9O-0005Rp-PR; Thu, 25 Jun 2015 15:49:30 -0400 From: "George Neville-Neil" To: "Craig Rodrigues" Cc: "freebsd-testing@freebsd.org" , "freebsd-java@freebsd.org" Subject: Re: Requests for Help: add FreeBSD procstat support to akuma library for Jenkins Date: Thu, 25 Jun 2015 15:49:31 -0400 Message-ID: <8CA148D7-81AF-41F8-AA41-9D7700B27242@neville-neil.com> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; format=flowed Content-Transfer-Encoding: quoted-printable X-Mailer: MailMate (1.9.1r5084) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vps.hungerhost.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - neville-neil.com X-Get-Message-Sender-Via: vps.hungerhost.com: authenticated_id: gnn@neville-neil.com X-Source: X-Source-Args: X-Source-Dir: X-BeenThere: freebsd-testing@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Testing on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jun 2015 19:49:32 -0000 On 18 Jun 2015, at 11:05, Craig Rodrigues wrote: > Hi, > > When setting up Jenkins, if you install new plugins, there > is a checkbox: > > Restart Jenkins when installation is complete and no jobs are running > > This checkbox allows you to restart Jenkins automatically when new > plugins are installed. This feature works on OS X, Linux, and = > Solaris, > but not FreeBSD. > > I tracked down the problem on FreeBSD. It turns out in this file > in the Jenkins core Jenkins: > https://github.com/kohsuke/hudson/blob/master/core/src/main/java/hudson= /lifecycle/UnixLifecycle.java > > the akuma library ( https://github.com/kohsuke/akuma/ ) is used > to figure out what command-line arguments > were passed to the Java VM that is running Jenkins. > This allows Jenkins to restart the VM with the same command-line > arguments. > > The akuma library has platform specific code for > OS X, Linux, and Solaris, but not FreeBSD. > > I am a bit overstretched with multiple things at this point. > I was wondering if someone with Java coding experience can help > with the following. > > (1) Take the akuma library from https://github.com/kohsuke/akuma/ > > (2) Implement FreeBSD support in akuma, by having it execute > "procstat -c" to figure out the command-line arguments for a = > process. > > (3) Make sure that all tests in akuma pass > > (4) Send a GitHub pull request to incorporate the change upstream. > > I do not code in Java but also didnt' see a followup to this. Has = anyone taken it upon themselves to fix this problem? If so, please speak up. Best, George