title: How to store tomcat Server Start/Stop time in database
body: <p>Use case:
  Whenever we start/stop the tomcat server, it should log entry into database.</p>
  <p>Explanation:
  Assume we start the server 12:00, then it should make a entry into database Server1 start 12:00
  and if shutdown at 01:00 then make a entry into database Server1 stop 01:00</p>
  <p>I tried to figure out some way, but nothing solid which can we implemented.
  Do let me know any solution to build this scenario.</p>
  <p>I need this for Liferay Tomcat Server</p>