Thanks all very much for your responses.Yes Jun-Dir-Liew the settings are optional, i open the run.sh from jboss and the settings are the same.But i can't understand why it is not running form /etc/init.d/lams while it is running from run.sh.The message that i get when i check the status (sudo /etc/init.d/lams status) is
Removed stale pid file: /var/run/lams2.pid
LAMS 2 Server is not running.
Does anyone knows why i get this message?
I run the script with -x option and i check all the values of variables which are correct.So i guess that the syntax of the start-stop-command in the start function is wrong.When i echo it with the specific values that i have i get this
start-stop-daemon --start --background --make-pidfile --pidfile /var/run/lams2.pid --chuid lams:lams --exec /usr/lib/jvm/java-1.5.0-sun/bin/java -- -server -Xmx512m -XX:MaxPermSize=128m -XX:MaxNewSize=204m -XX:SurvivorRatio=32 -Dprogram.name=lams2 -Djava.endorsed.dirs=/usr/share/jboss-4.0.2/lib/endorsed -classpath /usr/share/jboss-4.0.2/bin/run.jar:/usr/lib/jvm/java-1.5.0-sun/lib/tools.jar org.jboss.Main start
Can someone check it or just post his script ?
As for the log file i will change it in a while(but i have never edited this).
Thanks again.
Posted by giannis ioannidis