From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1GFVHE-0006Eh-B2 for garchives@archives.gentoo.org; Tue, 22 Aug 2006 12:22:40 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.7/8.13.6) with SMTP id k7MCLChJ024085; Tue, 22 Aug 2006 12:21:12 GMT Received: from smtp2.TU-Cottbus.De (smtp2.TU-Cottbus.De [141.43.99.248]) by robin.gentoo.org (8.13.7/8.13.6) with ESMTP id k7MCHq79007111 for ; Tue, 22 Aug 2006 12:17:52 GMT Received: from localhost (loopback [127.0.0.1]) by smtp2.TU-Cottbus.De (Postfix) with ESMTP id 2A67F50867A for ; Tue, 22 Aug 2006 14:17:50 +0200 (MEST) X-Virus-Scanned: by AMaViS (at smtp2.TU-Cottbus.De) Received: from [192.168.0.22] (p54BA5CEB.dip.t-dialin.net [84.186.92.235]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by smtp2.TU-Cottbus.De (Postfix) with ESMTP id 85C1F508667 for ; Tue, 22 Aug 2006 14:17:45 +0200 (MEST) Message-ID: <44EAF6CE.2020704@subsignal.org> Date: Tue, 22 Aug 2006 14:21:34 +0200 From: =?ISO-8859-1?Q?paul_k=F6lle?= User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] java and start-stop-daemon [repost] References: <44EAB563.1040103@subsignal.org> <200608221054.35634.uberlord@gentoo.org> In-Reply-To: <200608221054.35634.uberlord@gentoo.org> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by robin.gentoo.org id k7MCLCj7024085 X-Archives-Salt: c428d46b-f284-40be-af6e-53ed4258ab8e X-Archives-Hash: f9f3d5315665746bbc1d30a02a4256fa Roy Marples wrote: > On Tuesday 22 August 2006 08:42, paul k=F6lle wrote: [ snipp ] >> Starting /opt/sun-jdk-1.5.0.08/bin/java... >> Detatching to start /opt/sun-jdk-1.5.0.08/bin/java...done. >> [ ok ] >> >> -> app not running >> >> I'm mostly interested in changing the user at startup and pid file >> handling. If start-stop-daemon won't work I'd need to add sudo to >> RDEPEND and grab the PID from "ps U" or similar... I'd prefer doing it >> in a more "standard" way though. >=20 > What is /opt/sun-jdk-1.5.0.08/bin/java ? Does it change it's process na= me at=20 > all? Maybe you need to use the --name option. Hmm, I think it is the java "interpreter" and it doesn't seem to change its name. "cat /proc//stat shows "java" as the process name, so --name would be the same for all running java apps. [...poking around..] Ok, fixed ;) Apparently s-s-d doesn't like linebreaks (not even escaped) between "--startas $command", and "-- $args". >=20 > I ask as for init scripts we have a bash wrapper around s-s-d that is a= lot=20 > more strict than s-s-d itself. For example it should only be used for=20 > daemons - ie what you call is expected to be a daemon. Thus it is usele= ss for=20 > shell scripts that call daemons. See the courier-imap fiasco for detail= s on=20 > this. I'm pretty sure I do not understand the details here ;) I just thought about s-s-d as something you can use as a wrapper for backgrounding and pid stuff... thanks again, Paul --=20 gentoo-dev@gentoo.org mailing list