public inbox for gentoo-java@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-java] java and start-stop-daemon
@ 2006-08-21 16:12 Paul Kölle
  0 siblings, 0 replies; only message in thread
From: Paul Kölle @ 2006-08-21 16:12 UTC (permalink / raw
  To: gentoo-java

Hi all,

I'm trying to write a startup script for helma 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


thanks
 Paul

-- 
gentoo-java@gentoo.org mailing list



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-08-21 16:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-21 16:12 [gentoo-java] java and start-stop-daemon Paul Kölle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox