To create a launch script, the startmanager, startserver, and starnode scripts will generate this for you. The command is
./startManager.sh -script -backgroundor
./startNode.sh -script -backgroundor
./startServer.sh-script -background
.. as appropriate...
In my case, I'm going to auto-start the deployment manager and the node agent, and then use the WAS monitoring policy to handle the individual app servers.
So, the steps are:
- Generate the startup scripts using the above commands.
- make a copy of rc.was (found in the was bin directory) for the deployment manager, and another for the node agent. I called these rc.dm.was and rc.na.was.
- Edit these to point to the start_dmgr.sh and start_nodeagent.sh scripts generated above
- create entry in etc/Inittab for the two files created in step 2
- was:2:once:/usr/WebSphere/AppServer/bin/rc.dm.was >/dev/console 2>&1
- was:2:once:/usr/WebSphere/AppServer/bin/rc.na.was >/dev/console 2>&1
And, that should do it. Let's see if it works :-)