#!/bin/sh # $Id: geronimo-1.0,v 1.2 2006/05/24 20:52:09 jfranken Exp $ # Startscript for Geronimo 1.0 # by Johannes Franken ######################################################### # IMPORTANT: Enter your Geronimo admin credentials here: USER=system PASSWORD=manager ######################################################### DAEMON=/usr/local/geronimo-1.0/bin/geronimo.sh GERONIMO_PID=/var/run/geronimo-1.0.pid PATH=/bin:/usr/bin:/sbin:/usr/sbin export GERONIMO_PID test -x $DAEMON || exit 0 case "$1" in start) echo -n "Starting Java application server: Geronimo-1.0 " if start-stop-daemon --quiet --stop --signal 0 --pidfile $GERONIMO_PID >/dev/null then echo "[already running]" else /sbin/start-stop-daemon --start --quiet --exec $DAEMON -- start --quiet > /dev/null echo "." fi ;; stop) echo -n "Stopping Java application server: Geronimo-1.0 " if start-stop-daemon --quiet --stop --signal 0 --pidfile $GERONIMO_PID >/dev/null then $DAEMON stop --force --user $USER --password $PASSWORD >/dev/null && rm $GERONIMO_PID echo "." else echo "[not running]"; fi ;; force-reload|restart) $0 stop sleep 1 $0 start ;; *) echo "Usage: /etc/init.d/geronimo-1.0 {start|stop|restart|force-reload}" exit 1 esac exit 0