|
From: Leif M. <le...@ta...> - 2004-11-08 15:58:52
|
Sander, Sander Smith wrote: > I have a little server that I've put the Wrapper in front of, and > things work fine. I'm developing on Windows, and it works there as > well as working as an NT service. I copy everything over to Linux, and > it works there also. Great. Now the problems start. I'd like to start > the server every time Linux boots as a daemon (just like an NT > Service). Unfortunately, while I know lots about Java and Windows, I > know almost squat about Linux. I put the start command in > /etc/rc.d/rc.local and have found that the server does not start. > Looking at my log I see: From the log, the problem is that the Wrapper is not able to launch the "java" command. Unless you have specified a user to run as in the shell script, the Wrapper will be running as root. My guess is that java is not on the PATH of the root user. The easiest way to fix this is to use a JAVA_HOME environment variable: set.JAVA_HOME=/opt/java_sdk_xyz wrapper.java.command=%JAVA_HOME%/bin/java You can either set it in your wrapper.conf file as above, or define it for the root user. > Thanks a lot for this great tool. One other criticism - what's with > the really tiny font on the webpage? What browser / version are you using? The font should not be small :-/ Cheers, Leif |