while only a minor change I think it would be helpful if the GENTOO_VM enviroment var was exported from the conf.d file by default (but still commented) The current conf.d/tomcat-5.5 file has the lines # Example: GENTOO_VM="sun-jdk-1.5" #GENTOO_VM="sun-jdk-1.5" it would be nicer as: # Example: export GENTOO_VM="sun-jdk-1.5" #export GENTOO_VM="sun-jdk-1.5" It took me a while to figure out that the conf.d file was not being sourced within the script and required me to export the var this should probably be done for other vars in the file as well, or be sure to source the file properly in the init script
same for 6.x it seems alternatively to export, you can alter init script like nelchael did with resin: JAVA_HOME=$(java-config -O) [ -n "${GENTOO_VM}" ] && JAVA_HOME=$(java-config --select-vm="${GENTOO_VM}" -O)
Fixed in 5.5.23-r6 and 6.0.13-r3, closing bug.