[jboss-dev-forums] [Other JBoss Development Design] - Re: run.sh to launch JBoss in background

dimitris@jboss.org do-not-reply at jboss.com
Fri Oct 6 06:32:02 EDT 2006


I don't think this is the right way to solve this.

It would be better to avoid the passing of variables back and forth and the background functionality in run.sh script and control it solely from the init.d script or whatever.

Then change run.sh to

a) remember the PID of the java process
b) install a trap that will simply forward the signal you are interested to the child java process

See
http://learnlinux.tsf.org.za/courses/build/shell-scripting/ch12s03.html

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3976536#3976536

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3976536



More information about the jboss-dev-forums mailing list