public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: "paul kölle" <paul@subsignal.org>
To: gentoo-dev@lists.gentoo.org
Subject: [gentoo-dev] java and start-stop-daemon [repost]
Date: Tue, 22 Aug 2006 09:42:27 +0200	[thread overview]
Message-ID: <44EAB563.1040103@subsignal.org> (raw)

[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



             reply	other threads:[~2006-08-22  7:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-22  7:42 paul kölle [this message]
2006-08-22  9:54 ` [gentoo-dev] java and start-stop-daemon [repost] Roy Marples
2006-08-22 12:21   ` paul kölle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=44EAB563.1040103@subsignal.org \
    --to=paul@subsignal.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox