--- /usr/portage/www-servers/tomcat/files/6/tomcat.init 2008-12-20 19:36:58.000000000 +0100 +++ /etc/init.d/tomcat-6 2009-03-22 11:15:43.000000000 +0100 @@ -62,9 +62,10 @@ init_env_vars if [ ! -e "${CATALINA_TMPDIR}" ]; then - eerror "CATALINA_TMPDIR does not exist. Unable to start tomcat." + eerror "CATALINA_TMPDIR did not exist and was newly created." eerror "Please see /etc/conf.d/tomcat-6 for more information." - eend 1 + mkdir "${CATALINA_TMPDIR}" + chown ${CATALINA_USER}:${CATALINA_GROUP} "${CATALINA_TMPDIR}" fi # Figure out what arguments to pass start_helper based on TOMCAT_START