Tomcat init script on Debian

robii
New Contributor III

I just updated to 9.24. The init.d script failed to start tomcat because it is expecting Ubuntu.

DISTRIB_ID=lsb_release -i -s 2>/dev/null returns

Debian and the code below is looking for Ubuntu. I simply edited it to reflect Debian and all worked fine.

if [ "${DISTRIB_ID}" = "Ubuntu" ]; then

1 REPLY 1

localhorst
Contributor

I would recommend running the standard Debian tomcat7 package with Debian's OpenJDK. Thereby you get software updates and security patches.

Simply dump your ROOT.WAR in /var/lib/tomcat7/webapps and restart tomcat7. You might want to adjust the log4j properties to match your logging preferences.

Please get in touch if you need any further help.