Details
-
Suggestion
-
Resolution: Unresolved
-
None
-
None
-
1
-
Description
The service.bat script uses tomcat8.exe to create the service.
It would be helpful to add --LogLevel Debug to it so we would get more verbose logging.
The current last few lines would look like this:
"%EXECUTABLE%" //IS//%SERVICE_NAME% ^ --Description "Atlassian Jira 8.16.0" ^ --DisplayName "Atlassian Jira" ^ --Install "%EXECUTABLE%" ^ --LogPath "%CATALINA_BASE%\logs" ^ --StdOutput auto ^ --StdError auto ^ --Classpath "%CLASSPATH%" ^ --Jvm "%JVM%" ^ --StartMode jvm ^ --StopMode jvm ^ --StartPath "%CATALINA_HOME%" ^ --StopPath "%CATALINA_HOME%" ^ --StartClass org.apache.catalina.startup.Bootstrap ^ --StopClass org.apache.catalina.startup.Bootstrap ^ --StartParams start ^ --StopParams stop ^ --JvmOptions "-Djava.awt.headless=true;-Datlassian.standalone=JIRA;-Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true;-Dmail.mime.decodeparameters=true;-Dorg.dom4j.factory=com.atlassian.core.xml.InterningDocumentFactory;-XX:-OmitStackTraceInFastThrow;%GC_JVM_PARAMETERS%;-XX:InitialCodeCacheSize=32m;-XX:ReservedCodeCacheSize=512m;-Dcatalina.home=%CATALINA_HOME%;-Dcatalina.base=%CATALINA_BASE%;-D%ENDORSED_PROP%=%CATALINA_HOME%\endorsed;-Djava.io.tmpdir=%CATALINA_BASE%\temp;-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager;-Djava.util.logging.config.file=%CATALINA_BASE%\conf\logging.properties;%JvmArgs%" ^ --JvmOptions9 "--add-opens=java.base/java.lang=ALL-UNNAMED#--add-opens=java.base/java.io=ALL-UNNAMED#--add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED" ^ --Startup "%SERVICE_STARTUP_MODE%" ^ --JvmMs "%JvmMs%" ^ --JvmMx "%JvmMx%" ^ --LogLevel Debug if not errorlevel 1 goto installed echo Failed installing '%SERVICE_NAME%' service exit /b 1 :installed echo The service '%SERVICE_NAME%' has been installed. exit /b 0
Another option would be to do it over a flag in the script arguments.