geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amir Mistric (JIRA)" <>
Subject [jira] Updated: (GERONIMO-4622) Contribution: Linux service script for Geronimo/WAS CE
Date Mon, 27 Apr 2009 13:01:32 GMT


Amir Mistric updated GERONIMO-4622:


The script is attached. Following are installation steps and posting from original forum thread

I decided to share the script (attached) to manage WAS CE as a service on Linux.


    * this script is for RedHat Enterprise Linux (tested using WASCE on RHEL 5.3 using
Sun's JDK 1.6 64-bit)
    * the script also uses separate login/account (service account) to run WASCE (you don't
want to run it as root do you? Wink
    * implementation of status function uses GShell to connect/disconnect to check if the
server is up...If someone has a better idea, feel free to post a reply Happy
    * Kudos to who got me started
    * feel free to copy, change, correct, suggest, comment, or do whatever you'd like to the
script Happy

Installation instructions:

    * copy script to /etc/rc.d/init.d and rename to wasce (or whatever you like...just note
to change the name of the script in following commands also)
    * check file mode and SELinux context (if you are using SE Linux). Here is what it should
look like:

ls -laZ wasce
-rwxr-xr-x root root system_u:object_r:initrc_exec_t wasce

    * add the service using following command:

chkconfig --add wasce

    * set the service to start at certain runlevels

chkconfig --level 2345 wasce on

Now you can use service command to manage WAS CE (e.g. service wasce status)



> Contribution: Linux service script for Geronimo/WAS CE  
> --------------------------------------------------------
>                 Key: GERONIMO-4622
>                 URL:
>             Project: Geronimo
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>          Components: startup/shutdown
>    Affects Versions: 2.1.4
>         Environment: RedHat Enterprise Linux v5.3
>            Reporter: Amir Mistric
>            Priority: Trivial
>         Attachments:
> As per suggestion on WAS CE forum, I am attaching a shell script that can be used for
Linux services script in Geronimo/WAS CE.
> For more information please [see this thread|]

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message