From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Sep 14 06:18:32 2007 Return-Path: Delivered-To: freebsd-ports-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EC2C516A477 for ; Fri, 14 Sep 2007 06:18:32 +0000 (UTC) (envelope-from alepulver@FreeBSD.org) Received: from relay00.pair.com (relay00.pair.com [209.68.5.9]) by mx1.freebsd.org (Postfix) with SMTP id A25A513C47E for ; Fri, 14 Sep 2007 06:18:32 +0000 (UTC) (envelope-from alepulver@FreeBSD.org) Received: (qmail 69045 invoked by uid 0); 14 Sep 2007 06:18:30 -0000 Received: from unknown (HELO deimos.mars.bsd) (unknown) by unknown with SMTP; 14 Sep 2007 06:18:30 -0000 X-pair-Authenticated: 200.114.236.110 Date: Fri, 14 Sep 2007 03:18:52 -0300 From: Alejandro Pulver To: Anton Yudin Message-ID: <20070914031852.240aa6e1@deimos.mars.bsd> In-Reply-To: <200709100213.l8A2D0rZ083480@freefall.freebsd.org> References: <200709100213.l8A2D0rZ083480@freefall.freebsd.org> X-Mailer: Claws Mail 3.0.0 (GTK+ 2.10.14; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_R=6jOwEMwMJc3ZzuxL92hqp"; protocol="application/pgp-signature"; micalg=PGP-SHA1 Cc: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/115717: New port: java/exist, eXist is an Open Source native XML database X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Sep 2007 06:18:33 -0000 --Sig_R=6jOwEMwMJc3ZzuxL92hqp Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hello. The port's wrapper script doesn't stop the application (however if you run shutdown.sh without parameters it works), and can't determine when it's running. This could just be a problem with the arguments. But may be solved with the solution below (javaservicewrapper). There are two ways of determining if a process is running: by a PID file or process name. In this case the process name should be used, but it's '[java]' so can't be differentiated from others. I saw something interesting called Java Service Wrapper, it's like a "daemon launcher" for Java programs. This program is integrated in eXist, but only has Linux/Windows binary versions, that's why I've created a port sysutils/javaservicewrapper. Then the port could depend on it and symlink the binaries replacing the Linux ones, and eXist wouldn't notice it. The reason for using javaservicewrapper is that it creates a PID file when launching the daemon, which could be used in the rc.d script. And also provides all the needed functions (start, stop, status, etc) as an rc.d script itself. I will be out the next week, if you haven't found a solution then, I'll look at it (should be easy though, but I'm preparing for the travel). Best Regards, Ale --Sig_R=6jOwEMwMJc3ZzuxL92hqp Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFG6ifMiV05EpRcP2ERAmaYAJoD/FrCCu6JBTYZT/77vG+9u1RyiwCfbbo9 1MtQv5ycn+04IAceosRWSSo= =TmLt -----END PGP SIGNATURE----- --Sig_R=6jOwEMwMJc3ZzuxL92hqp--