Renjan Thomas wrote:
Also you can use a grep command to check that the process is running as it is a java process
something like -> ps -ef | grep java or ps -ef | grep startweblogic
yep, sort of
this one only works if WebLogic is not started in the background from your
startWeblogic.sh script.
What if you have multiple WebLogic instances running on that box?
Also,
you should filter out the grep.
where <UserName> is the user ID that started the server and
<ServerName> is the name of your WebLogic Server instance.
This will verify the JVM hosting WebLogic is running, but the
server might be suspended, which is NOT running, NOT accepting
requests.
If you have ti KILL the Java process, you could pipe the above command
line into awk, print the 4th parameter and use it w/ kill
All this only works on UNIX systems where you have access to the process' environment.
M