From 44b53ba3eeb5ef270768ae03975401f8205aad93 Mon Sep 17 00:00:00 2001 From: gregor Date: Thu, 6 Nov 2003 16:08:07 +0000 Subject: =?UTF-8?q?Start-,=20Stop-=20und=20Install-Scripts=20f=C3=BCr=20To?= =?UTF-8?q?mcat=20unter=20W32=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@27 d688527b-c9ab-4aba-bd8d-4036d912da1d --- .../deploy/tomcat/win32/installTomcatAsService.bat | 36 ++++++++++++++++++++++ .../data/deploy/tomcat/win32/startTomcat.bat | 28 +++++++++++++++++ .../data/deploy/tomcat/win32/stopTomcat.bat | 13 ++++++++ .../tomcat/win32/uninstallTomcatAsService.bat | 12 ++++++++ 4 files changed, 89 insertions(+) create mode 100644 spss.server/data/deploy/tomcat/win32/installTomcatAsService.bat create mode 100644 spss.server/data/deploy/tomcat/win32/startTomcat.bat create mode 100644 spss.server/data/deploy/tomcat/win32/stopTomcat.bat create mode 100644 spss.server/data/deploy/tomcat/win32/uninstallTomcatAsService.bat (limited to 'spss.server/data/deploy/tomcat') diff --git a/spss.server/data/deploy/tomcat/win32/installTomcatAsService.bat b/spss.server/data/deploy/tomcat/win32/installTomcatAsService.bat new file mode 100644 index 000000000..8509aba43 --- /dev/null +++ b/spss.server/data/deploy/tomcat/win32/installTomcatAsService.bat @@ -0,0 +1,36 @@ +rem ---------------------------------------------------------------------------------------------- +rem Modify these entries according to your needs + +rem JDK home directory (no trailing path separator) +set JAVA_HOME= + +rem Tomcat 4.1.x home directory (no trailing path separator) +set CATALINA_HOME= + +rem MOA SP configuration home directory (no trailing path separator) +set MOA_SPSS_CFG_HOME=%CATALINA_HOME%\conf\moa-spss + +rem ---------------------------------------------------------------------------------------------- + +set PARAM_SPSSCONFIG=-Dmoa.spss.server.configuration=%MOA_SPSS_CFG_HOME%\MOA-SPSSConfiguration.xml +set PARAM_LOGGING=-Dlog4j.configuration=file:%MOA_SPSS_CFG_HOME%\log4j.properties +set PARAM_NODEID=-Dmoa.node-id=Node1 +set PARAMS_MOA=%PARAM_SPSSCONFIG% %PARAM_LOGGING% %PARAM_NODEID% + +rem set PARAM_TRUST_STORE=-Djavax.net.ssl.trustStore=truststore.jks +rem set PARAM_TRUST_STORE_PASS=-Djavax.net.ssl.trustStorePassword=changeit +rem set PARAM_TRUST_STORE_TYPE=-Djavax.net.ssl.trustStoreType=jks +rem set PARAMS_SSL=%PARAM_TRUST_STORE% %PARAM_TRUST_STORE_PASS% %PARAM_TRUST_STORE_TYPE% + +set CATALINA_OPTS=%PARAMS_MOA% %PARAMS_SSL% + +%CATALINA_HOME%bin\tomcat -install "Jakarta Tomcat 4.1" + %JAVA_HOME%\jre\bin\server\jvm.dll + -Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.jar + -Dcatalina.home=%CATALINA_HOME% %CATALINA_OPTS% -Xrs + -Djava.endorsed.dirs=$CATALINA_HOME\common\endorsed + -start org.apache.catalina.startup.Bootstrap -params start + -stop org.apache.catalina.startup.Bootstrap -params stop + -out %CATALINA_HOME%\logs\stdout.log + -err %CATALINA_HOME%\logs\stderr.log + -current %CATALINA_HOME diff --git a/spss.server/data/deploy/tomcat/win32/startTomcat.bat b/spss.server/data/deploy/tomcat/win32/startTomcat.bat new file mode 100644 index 000000000..751d564a4 --- /dev/null +++ b/spss.server/data/deploy/tomcat/win32/startTomcat.bat @@ -0,0 +1,28 @@ +rem ---------------------------------------------------------------------------------------------- +rem Modify these entries according to your needs + +rem JDK home directory (no trailing path separator) +set JAVA_HOME= + +rem Tomcat 4.1.x home directory (no trailing path separator) +set CATALINA_HOME= + +rem MOA SP configuration home directory (no trailing path separator) +set MOA_SPSS_CFG_HOME=%CATALINA_HOME%\conf\moa-spss + +rem ---------------------------------------------------------------------------------------------- + +set PARAM_SPSSCONFIG=-Dmoa.spss.server.configuration=%MOA_SPSS_CFG_HOME%\MOA-SPSSConfiguration.xml +set PARAM_LOGGING=-Dlog4j.configuration=file:%MOA_SPSS_CFG_HOME%\log4j.properties +set PARAM_NODEID=-Dmoa.node-id=Node1 +set PARAMS_MOA=%PARAM_SPSSCONFIG% %PARAM_LOGGING% %PARAM_NODEID% + +rem set PARAM_TRUST_STORE=-Djavax.net.ssl.trustStore=truststore.jks +rem set PARAM_TRUST_STORE_PASS=-Djavax.net.ssl.trustStorePassword=changeit +rem set PARAM_TRUST_STORE_TYPE=-Djavax.net.ssl.trustStoreType=jks +rem set PARAMS_SSL=%PARAM_TRUST_STORE% %PARAM_TRUST_STORE_PASS% %PARAM_TRUST_STORE_TYPE% + +set CATALINA_OPTS=%PARAMS_MOA% %PARAMS_SSL% + +cd %CATALINA_HOME% +bin\catalina.bat start \ No newline at end of file diff --git a/spss.server/data/deploy/tomcat/win32/stopTomcat.bat b/spss.server/data/deploy/tomcat/win32/stopTomcat.bat new file mode 100644 index 000000000..09dd83f2d --- /dev/null +++ b/spss.server/data/deploy/tomcat/win32/stopTomcat.bat @@ -0,0 +1,13 @@ +rem ---------------------------------------------------------------------------------------------- +rem Modify these entries according to your needs + +rem JDK home directory (no trailing path separator) +set JAVA_HOME= + +rem Tomcat 4.1.x home directory (no trailing path separator) +set CATALINA_HOME= + +rem ---------------------------------------------------------------------------------------------- + +cd %CATALINA_HOME% +bin\catalina.bat stop \ No newline at end of file diff --git a/spss.server/data/deploy/tomcat/win32/uninstallTomcatAsService.bat b/spss.server/data/deploy/tomcat/win32/uninstallTomcatAsService.bat new file mode 100644 index 000000000..a1499ee29 --- /dev/null +++ b/spss.server/data/deploy/tomcat/win32/uninstallTomcatAsService.bat @@ -0,0 +1,12 @@ +rem ---------------------------------------------------------------------------------------------- +rem Modify these entries according to your needs + +rem JDK home directory (no trailing path separator) +set JAVA_HOME= + +rem Tomcat 4.1.x home directory (no trailing path separator) +set CATALINA_HOME= + +rem ---------------------------------------------------------------------------------------------- + +%CATALINA_HOME%bin\tomcat -uninstall "Jakarta Tomcat 4.1" -- cgit v1.2.3