I'm trying to install and run tomcat 8 on the remote Ubuntu 14.04 as per the instructions on this post.
My tomcat.conf
file is as follows:
description "Tomcat Server"
start on runlevel [2345]
stop on runlevel [!2345]
respawn
respawn limit 10 5
setuid tomcat
setgid tomcat
env JAVA_HOME=/usr/lib/jvm/java-8-oracle/jre/bin/java
env CATALINA_HOME=/opt/tomcat
# Modify these options as needed
env JAVA_OPTS="-Djava.awt.headless=true -Djava.security.egd=file:/dev/./urandom"
env CATALINA_OPTS="-Xms256M -Xmx512M -server -XX:+UseParallelGC"
exec $CATALINA_HOME/bin/catalina.sh run
# cleanup temp directory after stop
post-stop script
rm -rf $CATALINA_HOME/temp/*
end script
After saving I ran sudo initctl reload-configuration
and then sudo initctl start tomcat
but I get the message:
tomcat start/post-stop, process 1259
Obviously tomcat is not started and when I run sudo initctl status tomcat
I get the message :
tomcat stop/waiting
What am I missing?