<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>How to Log Server Start/Stop time in Database</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121400383" />
  <subtitle>How to Log Server Start/Stop time in Database</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121400383</id>
  <updated>2026-06-01T21:34:48Z</updated>
  <dc:date>2026-06-01T21:34:48Z</dc:date>
  <entry>
    <title>RE: RE: How to Log Server Start/Stop time in Database</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121442200" />
    <author>
      <name>Mohammed Yasin</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121442200</id>
    <updated>2022-06-14T04:45:28Z</updated>
    <published>2022-06-14T04:45:28Z</published>
    <summary type="html">&lt;p&gt;Hi ,&lt;/p&gt;
&lt;p&gt;You can capture that from Global Shut Down event , You can refer
  below property&lt;/p&gt;
&lt;p&gt;
  &lt;a href="https://docs.liferay.com/dxp/portal/7.4-latest/propertiesdoc/portal.properties.html#Shutdown%20Events"&gt;https://docs.liferay.com/dxp/portal/7.4-latest/propertiesdoc/portal.properties.html#Shutdown%20Events&lt;/a&gt;&lt;/p&gt;</summary>
    <dc:creator>Mohammed Yasin</dc:creator>
    <dc:date>2022-06-14T04:45:28Z</dc:date>
  </entry>
  <entry>
    <title>RE: RE: How to Log Server Start/Stop time in Database</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121440792" />
    <author>
      <name>Komal Prasad</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121440792</id>
    <updated>2022-06-09T15:20:50Z</updated>
    <published>2022-06-09T10:31:41Z</published>
    <summary type="html">&lt;p&gt;Thanks,&lt;br /&gt; for the response, just curious to know do we have any
  stop time as well, &lt;/p&gt;</summary>
    <dc:creator>Komal Prasad</dc:creator>
    <dc:date>2022-06-09T10:31:41Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to Log Server Start/Stop time in Database</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121401651" />
    <author>
      <name>Mohammed Yasin</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121401651</id>
    <updated>2022-04-19T06:39:37Z</updated>
    <published>2022-04-19T06:39:36Z</published>
    <summary type="html">&lt;p&gt;Hi ,&lt;br /&gt; You can get the time when the  Liferay was started from
  PortalUtil.getUptime(). In case you need an event to capture this,
  then you can look into the Global Start up event that runs once when
  the portal initializes.&lt;br /&gt;
  &lt;br /&gt;
  &lt;a href="https://help.liferay.com/hc/en-us/articles/360035828151-Liferay-DXP-Startup-Phases#portal-startup-events"&gt;https://help.liferay.com/hc/en-us/articles/360035828151-Liferay-DXP-Startup-Phases#portal-startup-events&lt;/a&gt;&lt;/p&gt;</summary>
    <dc:creator>Mohammed Yasin</dc:creator>
    <dc:date>2022-04-19T06:39:36Z</dc:date>
  </entry>
  <entry>
    <title>How to Log Server Start/Stop time in Database</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121400382" />
    <author>
      <name>Komal Prasad</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121400382</id>
    <updated>2022-04-18T15:33:21Z</updated>
    <published>2022-04-15T16:43:26Z</published>
    <summary type="html">&lt;p&gt;Use Case:&lt;br /&gt; We want  to Log Server Start/Stop time in database.&lt;br /&gt;
  &lt;br /&gt; Example: for Normal Web-App we use
  &amp;quot;ServletContextListener&amp;quot; which get triggered at server
  start/stop and log time in DB.&lt;br /&gt;  &lt;/p&gt;
&lt;p&gt;Explanation: &lt;br /&gt; I like to log server start/stop time,&lt;br /&gt; do
  Liferay has &amp;quot;ServletContextListener&amp;quot; like feature&lt;br /&gt; OR
  is there any Inbulit Method from where I can fetch the server start
  and stop time &lt;/p&gt;</summary>
    <dc:creator>Komal Prasad</dc:creator>
    <dc:date>2022-04-15T16:43:26Z</dc:date>
  </entry>
</feed>
