Skip to main content
Question

Tomcat init script on Debian

  • February 26, 2014
  • 1 reply
  • 2 views

Forum|alt.badge.img+13

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

Forum|alt.badge.img+10
  • Contributor
  • February 27, 2014

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.