from the thread:
"So we wrote the attached patch for build/openfire.init.d to add more possible $JAVA_HOME directories in order to support current Debian derivative distributions on x86 arch.
In addition we fixed an incorrect return value, which applies when no JRE found."
Debian, Ubuntu
A patch by Lévai Tamás and Gergely Patonay.
r13833 , thanks