This topic aims to start the Websphere process automatically after rebooting the system or even if the process is crashed for some reason it will restart the websphere process automatically.
References : 
- There are several server processes that the operating system can monitor and automatically restart when the server processes stop abnormally.
- To set up this function on a Linux® or supported UNIX® operating system, you must have root authority to edit the inittab file.
- You can restart the server1 process, with the below example.
- On a Linux or supported UNIX operating system, you must manually create a shell script that automatically starts any of the processes previously mentioned. Each UNIX shell script controls a single process, such as a stand-alone product instance. Multiple stand-alone Application Server processes require multiple UNIX scripts, which you can define.
- For example you want to start the Websphere general server which is server1 to make the Websphere service up.
- We perform this using the following step generally which is ..WebSphere/AppServer/bin#./startServer.sh server1
- But to start this automatically you have to prepare a general script which will be triggered while system starts.
- You can generate the script automatically by running the following command
..WebSphere/AppServer/bin#./startServer.sh server1 -script -background
- Now check in the ..WebSphere/AppServer/bin# directory for the newly created file with name start_server1.sh
- Now the next step is to Locate the rc.was example shell script, which is in the app_server_root /bin directory.
- Now by following the sample script rc.was create your own rc.s1 like shell scripts under ..WebSphere/AppServer/bin ..itself.
- Create a new shell script for each process that the operating system is to monitor and restart. like rc.s1,rc.s2 etc s1: server1, s2:server2 ..
- Edit the inittab file of the operating system, to add an entry for each shell script you have created.
- Comments in the header of the rc.was file include a sample inittab entry line for adding this script to the inittab table.
- Each inittab entry causes the operating system to call the specified shell script whenever the system initializes.
- As each shell script runs, it monitors and starts the server process you specified.
- For example, if you create the following inittab entry for a process, the rc.was shell script is run whenever the system initializes, and if the process goes down while the system is initializing into a machine that is operating at a runlevel of 2, 3, or 5:
- was:235:respawn:/usr/WebSphere/AppServer/bin/rc.was >/dev/console 2>&1
- Ok lets create entry for our server1 in the /etc/inittab at the end of file like below
s1:2345:once:/opt/IBM/WebSphere/AppServer/bin/rc.s1 >/dev/console 2>&1
- As we have already created rc.s1 and start_server1.sh under /opt/IBM/WebSphere/AppServer/bin when the server1 process goes down or when system rebooted the the Websephere server1 process will be made up automatically.
References : 
5 comments to "Automatically start Websphere after system reboot unix windows"
Powered by WidgetsForFree
- ► 2013 (19)
- ► 2011 (18)
- Automatically start Websphere after system reboot ...
- String comparision in Jython script class exceptio...
- WSVR0009E: Error occurred during startup Cannot ge...
- print the time,date and time zone in java program ...
- How to find Websphere Version in python/jython scr...
- Big Banyan Tree,Srirangapatnam,Balmuri-Edmuri Fall...
- Modelart R/C Helicopter-For indoor flight-3Channel...
- ▼ March (7)
- ► 2009 (73)
My Blog List
- Airtel and vodafone GPRS settings for pocket PC phones
- Andhra 2 America
- Ayyappa Deeksha required things
- Blogs I watch !
- Captions for your bike
- DB2 FAQs
- Deepavali Vs The Goddes of sleep
- ETV - Dhee D2 D3
- Evolution of smoking in India Women
- How to make credit card payments?
- Java-J2EE interview preparation
- My SQL FAQs
- My Travelogues
- Old is blod - New is italic
- Online pay methids for credit cards
- Oracle FAQs
- Smoking in Indian Women
- Technology Vs Humans
- Twitter feeds for all Telugu stars on single page.
- Unix FAQs
- Unix best practices
- init 0, init 1, init 2 ..
- mCheck Application jar or jad download