留言板

Status Liferay Tomcat

Gérald CAUVIN,修改在6 年前。

Status Liferay Tomcat

Junior Member 帖子: 39 加入日期: 15-3-4 最近的帖子
Hello,
I want to be able to have a script allowing me to have the status of the server TOMCAT and the application LIFERAY.

Currently, I use the Liferay-Tomcat bundle.

When I start Tomcat with the file startup.sh, in return I have "Tomcat started" but in fact if I look at the file catalina.out, I can see that the Tomcat is not completely started since LIFERAY is in start-up.

So some could it direct me to a solution in script allowing me to have the final status of the server

thank you
thumbnail
David H Nebinger,修改在6 年前。

RE: Status Liferay Tomcat

Liferay Legend 帖子: 14918 加入日期: 06-9-2 最近的帖子
Startup script only launches the tomcat process, and the message you're getting is a result of the script being able to get the process going.

You need to check for connectivity on the ports. Tomcat will create the sockets initially as defined in server.xml, but it will not start listening for/accepting connections until the deployed web applications have started.









Come meet me at Devcon 2017 or 2017 LSNA!
Gérald CAUVIN,修改在6 年前。

RE: Status Liferay Tomcat

Junior Member 帖子: 39 加入日期: 15-3-4 最近的帖子
Thank you for your reply.

So I use

wget -t 1 --read-timeout 300 -o $CATALINA_TMPDIR/statusLiferay$$.log -O $CATALINA_TMPDIR/statusLiferayHome$$.rep "http://localhost:8080/web/guest/home" 2> $CATALINA_TMPDIR/statusLiferay$$.time


and I read the answers in the file with the expected answer "200 OK"


Cordially
GC