1 |
[posted on gentoo-java without luck, I hope those rc-stuff questions are |
2 |
not too off topic here...] |
3 |
|
4 |
Hi all, |
5 |
|
6 |
I'm trying to write a startup script for helma (http://helma.org) but |
7 |
start-stop-daemon gives me trouble here (I briefly looked at the jboss |
8 |
and jetty scripts but they don't use start-stop-daemon). As far as I can |
9 |
tell I run the exact same command from my init-script and via |
10 |
commandline, nevertheless the former fails with no error and the one |
11 |
issued from the prompt succeeds. Is java+start-stop-daemon a no-go? |
12 |
|
13 |
works from command prompt: |
14 |
gentoo ~ # start-stop-daemon -v --start --chuid helma --background |
15 |
--pidfile /var/run/helma-default.pid --make-pidfile --startas |
16 |
/opt/sun-jdk-1.5.0.08/bin/java -- -Djava.headless=True -Xmx64m -Xms64m |
17 |
-jar /opt/helma-1.5.1/launcher.jar -h /opt/helma-1.5.1/ -w 8080 |
18 |
|
19 |
-> app is running |
20 |
|
21 |
|
22 |
gentoo ~ # /etc/init.d/helma start |
23 |
* Starting checkconfig with instance default |
24 |
* This is passed to java: -Djava.headless=True -Xms64m -Xmx64m -jar |
25 |
/opt/helma-1.5.1/launcher.jar -h /opt/helma-1.5.1/ -w 8080 |
26 |
* Starting helma instance default. ... |
27 |
Starting /opt/sun-jdk-1.5.0.08/bin/java... |
28 |
Detatching to start /opt/sun-jdk-1.5.0.08/bin/java...done. |
29 |
[ ok ] |
30 |
|
31 |
-> app not running |
32 |
|
33 |
I'm mostly interested in changing the user at startup and pid file |
34 |
handling. If start-stop-daemon won't work I'd need to add sudo to |
35 |
RDEPEND and grab the PID from "ps U" or similar... I'd prefer doing it |
36 |
in a more "standard" way though. |
37 |
|
38 |
thanks |
39 |
Paul |
40 |
|
41 |
-- |
42 |
gentoo-dev@g.o mailing list |