<?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>What is the best way to shutdown a Liferay 7.0 JBoss Bundle in Linux?</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=111326944" />
  <subtitle>What is the best way to shutdown a Liferay 7.0 JBoss Bundle in Linux?</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=111326944</id>
  <updated>2026-04-04T04:23:40Z</updated>
  <dc:date>2026-04-04T04:23:40Z</dc:date>
  <entry>
    <title>RE: What is the best way to shutdown a Liferay 7.0 JBoss Bundle in Linux?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111692124" />
    <author>
      <name>Juan Vaca</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111692124</id>
    <updated>2018-11-28T17:18:51Z</updated>
    <published>2018-11-28T17:18:51Z</published>
    <summary type="html">&lt;p&gt;I finally figured out what is happening.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I am using a JNDI Datasource defined in dbc.default.jndi.name
  property.  When JBoss shuts down one of the first things that go down
  is the data source.  So when Liferay tries to do its normal shutdown
  process there is no database connection and the server never shuts down.&lt;/p&gt;
&lt;p&gt;I change my configuration and now I'm using  this properties :
  jdbc.default.driverClassName, jdbc.default.password, jdbc.default.url
  and jdbc.default.username.  Now JBoss shuts down normally.&lt;/p&gt;
&lt;p&gt;Is that a Liferay's problem or is a JBoss' one?&lt;/p&gt;</summary>
    <dc:creator>Juan Vaca</dc:creator>
    <dc:date>2018-11-28T17:18:51Z</dc:date>
  </entry>
  <entry>
    <title>RE: What is the best way to shutdown a Liferay 7.0 JBoss Bundle in Linux?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111336387" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111336387</id>
    <updated>2018-10-26T09:22:07Z</updated>
    <published>2018-10-26T09:22:07Z</published>
    <summary type="html">&lt;blockquote&gt;Juan VacaHi, it&amp;#39;s me again.  This time I want to know what is the best way to shut down a Liferay 7.0 JBoss Bundle instance in Linux?.&lt;br /&gt;My development Liferay Bundle does not shut down after a  ctrl + c combination.  After a long wait, I end up killing the Liferay&amp;#39;s process with kill -9.&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;You typically shut down Liferay by shutting down the application server - exactly as you&amp;#39;d do it for any JBoss installation that is not running Liferay.&lt;br /&gt;&lt;br /&gt;If it doesn&amp;#39;t stop, most likely you (or someone) started a non-daemon thread. This effectively prevents the JVM from shutting down. Get a thread dump, identify the thread and - especially if it&amp;#39;s been started by your own code - implement proper shutdown notification and shut down the thread gracefully (or make it a daemon thread)</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2018-10-26T09:22:07Z</dc:date>
  </entry>
  <entry>
    <title>RE: What is the best way to shutdown a Liferay 7.0 JBoss Bundle in Linux?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111334931" />
    <author>
      <name>Arun Das</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111334931</id>
    <updated>2018-10-26T02:03:13Z</updated>
    <published>2018-10-26T02:03:13Z</published>
    <summary type="html">Hi,&lt;br /&gt;Attached is a sample startup/shutdown script. Please modify according to needs.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;​​​​​​​Arun</summary>
    <dc:creator>Arun Das</dc:creator>
    <dc:date>2018-10-26T02:03:13Z</dc:date>
  </entry>
  <entry>
    <title>What is the best way to shutdown a Liferay 7.0 JBoss Bundle in Linux?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111326943" />
    <author>
      <name>Juan Vaca</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111326943</id>
    <updated>2018-10-25T14:39:49Z</updated>
    <published>2018-10-25T14:39:49Z</published>
    <summary type="html">Hi, it&amp;#39;s me again.  This time I want to know what is the best way to shut down a Liferay 7.0 JBoss Bundle instance in Linux?.&lt;br /&gt;My development Liferay Bundle does not shut down after a  ctrl + c combination.  After a long wait, I end up killing the Liferay&amp;#39;s process with kill -9.&lt;br /&gt;&lt;br /&gt;I also programmed a shutdown event in Liferay&amp;#39;s administration, but the instance does not shut down.&lt;br /&gt;&lt;br /&gt;After a 10 minutes wait, the instance is still running.&lt;br /&gt;&lt;br /&gt;In the browser a get the message that I set up in the shutdown event.</summary>
    <dc:creator>Juan Vaca</dc:creator>
    <dc:date>2018-10-25T14:39:49Z</dc:date>
  </entry>
</feed>
