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 : [1][2]
- 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 : [1][2]
5 comments to "Automatically start Websphere after system reboot unix windows"
Post a Comment
Whoever writes Inappropriate/Vulgar comments to context, generally want to be anonymous …So I hope U r not the one like that?
For lazy logs, u can at least use Name/URL option which doesn’t even require any sign-in, The good thing is that it can accept your lovely nick name also and the URL is not mandatory too.
Thanks for your patience
~Krishna(I love "Transparency")
Popular Posts
-
The best solution to know about these init levels is to understand the " man init " command output on Unix. There are basically 8...
-
How to Unlock BSNL 3G data card to use it with Airtel and Vodafone Model no : LW272 ? How to unlock BSNL 3G data card( Model no : LW272 )us...
-
How to transfer bike registration from one State to other (Karnataka to Andhra)?? Most of us having two wheelers purchased and registered in...
-
ఓం శ్రీ స్వామియే శరణం ఆయ్యప్ప!! Related posts : Trip to Sabarimala - Part 1 Trip to Sabarimala - Part 2 Ayappa Deeksha required things...
-
Following are some of interesting blogs I found till now ...please comment to add your blog here. Blogs in English : http://nitawriter.word...
Popular posts
- 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?
- init 0, init 1, init 2 ..
- Java-J2EE interview preparation
- mCheck Application jar or jad download
- My SQL FAQs
- My Travelogues
- Old is blod - New is italic
- Online pay methids for credit cards
- Oracle FAQs
- Pilgrimages
- Smoking in Indian Women
- Technology Vs Humans
- Twitter feeds for all Telugu stars on single page.
- Unix best practices
- Unix FAQs
Buffs ...
Tags
Powered by WidgetsForFree
Archives
-
▼
2010
(35)
-
▼
March
(7)
- 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)
Anonymous says:
Good Help. WebSphere infocenter did not had this information to the point. Thanks.
harsha says:
Very good info. Thanks. Comment emi ledu brother. Kummi padesav article. Nice post
Anonymous says:
That was great. Thank you!
Anonymous says:
Hi Krishna,
This does not work on HP-Ux any ide.
Amit
amitinkar@gmail.com
Anonymous says:
Hi ,
I have a issue with server crash and tried this script to auto start my server when crashes but didnot worked. Do you know why ? i tried testing by killing my server 1 process but it didnot restarted. You help will be highly appreciated