-2

I have installed IBM HTTP Server and Apache Tomcat in my RHEL linux. In my linux how to check the status of LLAWP. I used this code to check the status ps -ef|grep LLAWP. but it returns only pid, name, user. I need status whether is running or stopped

Suganthan Raj
  • 113
  • 1
  • 4

3 Answers3

1

There may be other ways (systemctl status ...) but I'm not familiar with the specific services you are using so

  • For apache

    /opt/IBM/HTTPServer/bin/apachectl status

should return 0 if httpd is running and something else (3) if not.

For tomcat there is an answer on [so] https://stackoverflow.com/questions/3944157/is-tomcat-running

user9517
  • 114,104
  • 20
  • 206
  • 289
0

LLAWP is a sidecar process launched by Computer Associates Siteminder product. It's not actually part of IHS or Tomcat, but supporting software for Siteminder.

As others have said, if you can find it's PID, it's obviously running and not stopped!

covener
  • 1,665
  • 9
  • 15
-1

If it's actually returning anything, then this process is running.
If the process is not running, you will get no output.

Waleed Hamra
  • 731
  • 6
  • 16
  • if it returns anything exit code is '0'. Am i right? – Suganthan Raj Jan 12 '17 at 12:30
  • how to check it returns anything or nothing in linux? need check 'null' value or '0' – Suganthan Raj Jan 12 '17 at 12:32
  • Its now works fine. I used below code to check the status of LLAWP `llawp=ps -ef | grep LLAWP status=echo $? if [ $status = 0 ]; then echo "LLAWP is running....." elif [ $status = 1 || $status = 2 ] ; then echo "LLAWP is not running...." fi – Suganthan Raj Jan 12 '17 at 12:46