Usinng service.bat to install Tomcat 5 as a Windows service does not respect the service name passed from the command line. Error appears to be in line 64 of service.bat: ERRANT: set PR_DISPLAYNAME=Apache Tomcat CORRECT: set PR_DISPLAYNAME=%SERVICE_NAME% Optionally there could be hard coded values in there like this: (our solution) OPTIONAL: set PR_DISPLAYNAME=Apache Tomcat %SERVICE_NAME%
Well, It's not a major bug :) Anyhow the patched version is in the CVS. It sets the display name to a different value ony if the service name has been provided at the command line.
Cool, thanks. Only marked it as major since the install fails if you attempt to install the service multiple times (like we do). The script runs and fails but still says the service was installed. Perhaps there should be a check for the return value from the executable to indicate success/failure in the file?