title: Find if a process (Server) is running on unix
body: <p>I have a server (Java) that is running on UNIX.</p>
  
  <p>I'm trying to develop some application that will "sense" if the state of the server has been changed and notify me by mail.</p>
  
  <p>I want to know how can I do it? If there is some event or other way to sense the change, (by the way, sending the eMail is not the problem).</p>
  
  <p>I was thinking on Java code that will run in an infinite loop and will check if the process is running, but it seems to me a bad way.</p>
  
  <p>Any idea will be accepted.
  Thank you.</p>