Skip to main content
Question

Tomcat init script on Debian

  • February 26, 2014
  • 1 reply
  • 0 views

Forum|alt.badge.img+13
  • Contributor
  • 14 replies

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
  • 50 replies
  • 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.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings