Add options to override JAVA_HOME and JAVA_OPTS to the rc script and implement the status command.