geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ericp56 <>
Subject Re: Geronimo as a linux service
Date Tue, 14 Apr 2009 17:45:33 GMT


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

        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/ run &" gerry

    echo "Usage: $0 {start|stop}"

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:
Sent from the Apache Geronimo - Users mailing list archive at

View raw message