pidofproc's man page requires full path. Although neighter Debian nor Ubuntu implemented it. Without implementation it's quite difficult to judge if "java" would or wouldn't work. From the other hand if $JAVA_HOME isn't specified, "/bin/java" shouldn't work as well. I suggest it will not hurt if we add $JAVA variable. Any concerns?