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 1GFQtC-0005Rg-IQ for garchives@archives.gentoo.org; Tue, 22 Aug 2006 07:41:34 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.7/8.13.6) with SMTP id k7M7ekjg001396; Tue, 22 Aug 2006 07:40:46 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by robin.gentoo.org (8.13.7/8.13.6) with ESMTP id k7M7cm9r024259 for ; Tue, 22 Aug 2006 07:38:49 GMT Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 75DA564717 for ; Tue, 22 Aug 2006 07:38:48 +0000 (UTC) Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29017-16 for ; Tue, 22 Aug 2006 07:38:46 +0000 (UTC) Received: from smtp2.TU-Cottbus.De (smtp2.TU-Cottbus.De [141.43.99.248]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id C4F8D6467D for ; Tue, 22 Aug 2006 07:38:44 +0000 (UTC) Received: from localhost (loopback [127.0.0.1]) by smtp2.TU-Cottbus.De (Postfix) with ESMTP id 5745950833D for ; Tue, 22 Aug 2006 09:38:41 +0200 (MEST) 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 89D5150830E for ; Tue, 22 Aug 2006 09:38:39 +0200 (MEST) Message-ID: <44EAB563.1040103@subsignal.org> Date: Tue, 22 Aug 2006 09:42:27 +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: [gentoo-dev] java and start-stop-daemon [repost] X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Status: No, score=-2.541 required=5.5 tests=[AWL=-0.019, BAYES_00=-2.599, TW_JB=0.077] X-Spam-Score: -2.541 X-Spam-Level: X-Archives-Salt: 4723557e-438f-44c4-b584-556a710eadc1 X-Archives-Hash: f99e5012ad3188b6a8502cfb9ebc6e5c [posted on gentoo-java without luck, I hope those rc-stuff questions are not too off topic here...] Hi all, I'm trying to write a startup script for helma (http://helma.org) but start-stop-daemon gives me trouble here (I briefly looked at the jboss and jetty scripts but they don't use start-stop-daemon). As far as I can tell I run the exact same command from my init-script and via commandline, nevertheless the former fails with no error and the one issued from the prompt succeeds. Is java+start-stop-daemon a no-go? works from command prompt: gentoo ~ # start-stop-daemon -v --start --chuid helma --background --pidfile /var/run/helma-default.pid --make-pidfile --startas /opt/sun-jdk-1.5.0.08/bin/java -- -Djava.headless=True -Xmx64m -Xms64m -jar /opt/helma-1.5.1/launcher.jar -h /opt/helma-1.5.1/ -w 8080 -> app is running gentoo ~ # /etc/init.d/helma start * Starting checkconfig with instance default * This is passed to java: -Djava.headless=True -Xms64m -Xmx64m -jar /opt/helma-1.5.1/launcher.jar -h /opt/helma-1.5.1/ -w 8080 * Starting helma instance default. ... 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. thanks Paul -- gentoo-dev@gentoo.org mailing list