Asher,

The attached is what I use for convenience on RedHat 7.1, but admittedly 
haven't tried to put it in a run-level directory yet to see where it 
works best.  Feel free to hack it and let the list know if/how you got 
it to work for your particular setup.

David

--

Hastings wrote:

> Hi,
> 
> I have been trying get the Unix boot script (via jboss.org's website) for
> JBoss working on a FreeBSD machine through Hostpro.com.  However, it doesn't
> seem to want to work.
> 
> As a newbie to 'Unix anything', I am lost.  Is anyone using JBoss as a
> service on FreeBSD or similar - if so, could you please point me in the
> right direction, as to where to place the init script and any other useful
> tips to potential problems you may have encountered.
> 
> Thanks for your help,
> Asher
> 
> 
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 


#!/bin/sh

# JBoss start/stop script

JAVA_HOME=/usr/java/jdk1.3.1
JBOSS_HOME=/data/packages/JBoss-2.2.2_Tomcat-3.2.2/jboss
JBOSS_USER=david
JBOSS_HOST=localhost
JBOSS_PORT=8082
JBOSS_LOG=/tmp/jboss.log

SU=/bin/su
NOHUP=/usr/bin/nohup
ECHO=/bin/echo

case "$1" in
        start)
                $SU -c "cd $JBOSS_HOME/bin ; $NOHUP ./run_with_tomcat.sh 1> $JBOSS_LOG 
2>&1 &" - $JBOSS_USER
                ;;
        stop)
                $JAVA_HOME/bin/java -cp $JBOSS_HOME/lib/ext/jboss.jar 
org.jboss.Shutdown $JBOSS_HOST $JBOSS_PORT
                ;;
        *)
                $ECHO "Usage: $0 {start|stop}"
                exit 1
esac

Reply via email to