Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: What is the best way to shutdown a Liferay 7.0 JBoss Bundle in Linux?
Hi, it'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?.
My development Liferay Bundle does not shut down after a ctrl + c combination. After a long wait, I end up killing the Liferay's process with kill -9.
I also programmed a shutdown event in Liferay's administration, but the instance does not shut down.
After a 10 minutes wait, the instance is still running.
In the browser a get the message that I set up in the shutdown event.
My development Liferay Bundle does not shut down after a ctrl + c combination. After a long wait, I end up killing the Liferay's process with kill -9.
I also programmed a shutdown event in Liferay's administration, but the instance does not shut down.
After a 10 minutes wait, the instance is still running.
In the browser a get the message that I set up in the shutdown event.
Attachments:
Hi,
Attached is a sample startup/shutdown script. Please modify according to needs.
Regards,
Arun
Attached is a sample startup/shutdown script. Please modify according to needs.
Regards,
Arun
Attachments:
Juan VacaHi, it'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?.
My development Liferay Bundle does not shut down after a ctrl + c combination. After a long wait, I end up killing the Liferay's process with kill -9.
You typically shut down Liferay by shutting down the application server - exactly as you'd do it for any JBoss installation that is not running Liferay.
If it doesn'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's been started by your own code - implement proper shutdown notification and shut down the thread gracefully (or make it a daemon thread)
I finally figured out what is happening.
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.
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.
Is that a Liferay's problem or is a JBoss' one?