#!/bin/sh
#
#

case $1 in
stop)
        echo "Use the Geronimo admin console."
    ;;

start)
        echo -n "Starting Apache Geronimo."

        export CLASSPATH=/usr/java/jdk1.5.0_15/lib:/usr/java/jdk1.5.0_15/jre/lib
        export JAVA_HOME=/usr/java/jdk1.5.0_15/jre/
        export JAVA_OPTS="-XX:MaxPermSize=256m "
        su -c "/opt/geronimo/bin/geronimo.sh run &" gerry
    ;;

*)
    echo "Usage: $0 {start|stop}"
    ;;
esac

I added the JAVA_OPTS because of PermGen errors.  You can set other JVM
properties here, too.

I maintain a symbolic link named /opt/geronimo/ that points to the "live"
version of G.
I also, as root, "chown -R gerry:root /opt/geronimo" so all apps are
installed and execute with the gerry account.  Then I can also log in as
gerry and tweak properties files, etc.

Create a symbolic link in etc/rc3.d to /etc/init.d/geronimo.  You can thus
reboot and G will start.
ln --symbolic /etc/init.d/geronimo /etc/rc3.d/S62geronimo
-- 
View this message in context: 
http://www.nabble.com/Geronimo-as-a-linux-service-tp22830735s134p23044330.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.

Reply via email to