留言板
Status Liferay Tomcat
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
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
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!
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!
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
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