From d29b70b9961f50a4c64ba10672d977127e4123b7 Mon Sep 17 00:00:00 2001 From: Howard Gao Date: Thu, 31 Jan 2019 22:33:33 +0800 Subject: [PATCH] ARTEMIS-1058 Jars in web tmp dir locked on Windows This is the second commit. It improves the windows service configuration file so that the service can be shutdown gracefully (clean shutdown) and allow for a chance to clean up the web tmp dir. --- .../cli/commands/bin/artemis-service.xml | 71 ++++++++++++------- 1 file changed, 45 insertions(+), 26 deletions(-) diff --git a/artemis-cli/src/main/resources/org/apache/activemq/artemis/cli/commands/bin/artemis-service.xml b/artemis-cli/src/main/resources/org/apache/activemq/artemis/cli/commands/bin/artemis-service.xml index fac8f53f49..1b2e9980aa 100644 --- a/artemis-cli/src/main/resources/org/apache/activemq/artemis/cli/commands/bin/artemis-service.xml +++ b/artemis-cli/src/main/resources/org/apache/activemq/artemis/cli/commands/bin/artemis-service.xml @@ -33,39 +33,58 @@ roll %JAVA_HOME%\bin\java.exe - -Xbootclasspath/a:%ARTEMIS_HOME%\lib\${logmanager} - -XX:+UseParallelGC - -Xms512M - -Xmx1024M + -Xbootclasspath/a:%ARTEMIS_HOME%\lib\${logmanager} + -XX:+UseParallelGC + -Xms512M + -Xmx1024M - - -classpath - %ARTEMIS_HOME%\lib\artemis-boot.jar - -Dartemis.home=%ARTEMIS_HOME% - -Dartemis.instance=%ARTEMIS_INSTANCE% - -Ddata.dir=%ARTEMIS_DATA_DIR% - -Dartemis.instance.etc="%ARTEMIS_INSTANCE_ETC%" - -Djava.util.logging.manager=org.jboss.logmanager.LogManager - -Dlogging.configuration=%ARTEMIS_INSTANCE_ETC_URI%/logging.properties - -Djava.security.auth.login.config=%ARTEMIS_INSTANCE_ETC%\login.config - -Dhawtio.realm=activemq - -Dhawtio.offline="true" - -Dhawtio.role=${role} - -Dhawtio.rolePrincipalClasses=org.apache.activemq.artemis.spi.core.security.jaas.RolePrincipal - -Djolokia.policyLocation=%ARTEMIS_INSTANCE_ETC_URI%/jolokia-access.xml + -classpath + %ARTEMIS_HOME%\lib\artemis-boot.jar + -Dartemis.home=%ARTEMIS_HOME% + -Dartemis.instance=%ARTEMIS_INSTANCE% + -Ddata.dir=%ARTEMIS_DATA_DIR% + -Dartemis.instance.etc="%ARTEMIS_INSTANCE_ETC%" + -Djava.util.logging.manager=org.jboss.logmanager.LogManager + -Dlogging.configuration=%ARTEMIS_INSTANCE_ETC_URI%/logging.properties + -Djava.security.auth.login.config=%ARTEMIS_INSTANCE_ETC%\login.config + -Dhawtio.realm=activemq + -Dhawtio.offline="true" + -Dhawtio.role=${role} + -Dhawtio.rolePrincipalClasses=org.apache.activemq.artemis.spi.core.security.jaas.RolePrincipal + -Djolokia.policyLocation=%ARTEMIS_INSTANCE_ETC_URI%/jolokia-access.xml - org.apache.activemq.artemis.boot.Artemis + org.apache.activemq.artemis.boot.Artemis - run + run + + %JAVA_HOME%\bin\java.exe + -Xbootclasspath/a:%ARTEMIS_HOME%\lib\${logmanager} + -XX:+UseParallelGC + -Xms512M + -Xmx1024M + + -classpath + %ARTEMIS_HOME%\lib\artemis-boot.jar + -Dartemis.home=%ARTEMIS_HOME% + -Dartemis.instance=%ARTEMIS_INSTANCE% + -Ddata.dir=%ARTEMIS_DATA_DIR% + -Dartemis.instance.etc="%ARTEMIS_INSTANCE_ETC%" + -Djava.util.logging.manager=org.jboss.logmanager.LogManager + -Dlogging.configuration=%ARTEMIS_INSTANCE_ETC_URI%/logging.properties + + org.apache.activemq.artemis.boot.Artemis + + stop \ No newline at end of file