You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Amir Mistric (JIRA)" <ji...@apache.org> on 2009/04/27 15:01:32 UTC

[jira] Updated: (GERONIMO-4622) Contribution: Linux service script for Geronimo/WAS CE

     [ https://issues.apache.org/jira/browse/GERONIMO-4622?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amir Mistric updated GERONIMO-4622:
-----------------------------------

    Attachment: wasce-linux-service.sh

The script is attached. Following are installation steps and posting from original forum thread (verbatim)
-------------------------
Hi

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

Notes:

    * this script is for RedHat Enterprise Linux (tested using WASCE 2.1.1.2 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 viola.lu 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)

Cheers!

zambak
--------------------------------------

> Contribution: Linux service script for Geronimo/WAS CE  
> --------------------------------------------------------
>
>                 Key: GERONIMO-4622
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4622
>             Project: Geronimo
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>          Components: startup/shutdown
>    Affects Versions: 2.1.4
>         Environment: RedHat Enterprise Linux v5.3
> WAS CE 2.1.1.2
>            Reporter: Amir Mistric
>            Priority: Trivial
>         Attachments: wasce-linux-service.sh
>
>
> 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|http://www.ibm.com/developerworks/forums/thread.jspa?threadID=260135&tstart=0]

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