Results 1 to 2 of 2
I've been trying to get a startup script for jboss working.
The lines that start jboss in my /etc/init.d/jboss-tfel0 script is:
initlog -c "su $JBOSS_USER -s /bin/sh -c \"cd $TMPDIR/$JBOSS_CONFIGURATION ...
- 11-07-2009 #1Just Joined!
- Join Date
- Nov 2009
- Posts
- 4
JBoss Startup Script. Grrrr!
I've been trying to get a startup script for jboss working.
The lines that start jboss in my /etc/init.d/jboss-tfel0 script is:
initlog -c "su $JBOSS_USER -s /bin/sh -c \"cd $TMPDIR/$JBOSS_CONFIGURATION && sh $JBOSS_BINDIR/run.sh -c $JBOSS_CONFIGURATION $JBOSS_OPTIONS\"" &
And the run.sh script is the standard jboss one. I grabbed the init.d script from the jpackage repository.
After starting up jboss, I have these processes running...
root 13833 1 0 14:47 pts/0 00:00:00 initlog -c su tfel0 -s /bin/sh -c "cd /var/cache/jboss-tfel0/tfel0 && sh /opt/jboss/jboss-current/bin/run.sh -c tfel0 "
root 13834 13833 0 14:47 pts/0 00:00:00 su tfel0 -s /bin/sh -c cd /var/cache/jboss-tfel0/tfel0 && sh /opt/jboss/jboss-current/bin/run.sh -c tfel0
tfel0 13836 13834 0 14:47 ? 00:00:00 sh -c cd /var/cache/jboss-tfel0/tfel0 && sh /opt/jboss/jboss-current/bin/run.sh -c tfel0
tfel0 13837 13836 0 14:47 ? 00:00:00 sh /opt/jboss/jboss-current/bin/run.sh -c tfel0
tfel0 13860 13837 66 14:47 ? 00:00:13 /usr/java/latest/bin/java -Dprogram.name=run.sh -server -XX:PermSize=128m -XX:MaxPermSize=128m -Xms512m -Xmx1536m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dfile.encoding=UTF-8 -da -Duser.language=en -Duser.country=US -Duser.timezone=America/Los_Angeles -Djava.net.preferIPv4Stack=true -Djava.endorsed.dirs=/opt/jboss/jboss-current/lib/endorsed -classpath /opt/jboss/jboss-current/bin/run.jar:/usr/java/latest/lib/tools.jar org.jboss.Main -c tfel0
So, as you can see, I have what looks like I have several sh scripts still running. How do I get rid of them and maybe just have ONE in addition to my java process? Talk about overkill!
- 11-08-2009 #2
Is there a problem? All of the processes started after the initial one are children of the initial process.


Reply With Quote