geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Trygve Hardersen" <trygve.harder...@gmail.com>
Subject Re: Looking for init.d / rc.d script
Date Wed, 07 May 2008 21:16:39 GMT
I'm using this script on Ubuntu:

# Geronimo auto-start
#
# description: Auto-starts geronimo
# processname: geronimo
# pidfile: /var/run/geronimo.pid

export JAVA_HOME=/usr/lib/jvm/java-6-sun
export GERONIMO_OPTS="-Xmx512m -XX:MaxPermSize=256m"

case $1 in
start)
        su -p geronimo /usr/local/geronimo/bin/startup.sh
        ;;
stop)
        sh /usr/local/geronimo/bin/shutdown.sh --user system --password
manager
        ;;
restart)
        sh /usr/local/geronimo/bin/shutdown.sh --user system --password
manager
        su -p geronimo /usr/local/geronimo/bin/startup.sh
        ;;
esac
exit 0

Trygve


2008/5/7 <DFrahm@teamhuber.com>:

>
> Mine is just a wrapper for the scripts that come with Geronimo (WAS-CE in
> my case, but I think its basically the same thing except for the install
> path).
>
> #!/bin/sh
> #
> # wasce        Startup script for the IBM WAS-CE Server
> #
> # chkconfig: 2345 80 20
> # description: WebSphere Application Server Community Edition
> ### BEGIN INIT INFO
> # Description:         WebSphere Application Server Community Edition
> ### END INIT INFO
>
> case "$1" in
>     start)
>         /opt/IBM/WebSphere/AppServerCommunityEdition/bin/startup.sh
>         ;;
>     stop)
>         /opt/IBM/WebSphere/AppServerCommunityEdition/bin/shutdown.sh
>         ;;
>     restart)
>         /opt/IBM/WebSphere/AppServerCommunityEdition/bin/shutdown.sh
>         /opt/IBM/WebSphere/AppServerCommunityEdition/bin/startup.sh
>         ;;
> esac
>
> exit 0
>
>
>  From: Josh Highley <nabble.com@joshhighley.com> To:
> user@geronimo.apache.org Date: 05/07/2008 03:13 PM Subject:
> Looking for init.d / rc.d script
> ------------------------------
>
>
>
>
> Geronimo 2.1.1 on openSUSE 10.3
>
> I'm looking for an init.d script to start and kill Geronimo service.  This
> seems like a common file that would be out there all over the place, but
> I've Googled every way I can think of and haven't found anything.
>
> Thanks,
>
> Josh
> --
> View this message in context:
> http://www.nabble.com/Looking-for-init.d---rc.d-script-tp17113713s134p17113713.html
> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>
>
>
>

Mime
View raw message