geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From caij...@apache.org
Subject svn commit: r899553 - /geronimo/server/branches/2.1/plugins/procrun/src/main/resources/bin/service_pr.bat
Date Fri, 15 Jan 2010 08:07:08 GMT
Author: caijunj
Date: Fri Jan 15 08:07:08 2010
New Revision: 899553

URL: http://svn.apache.org/viewvc?rev=899553&view=rev
Log:
GERONIMO-5032 - Procrun issue: windows service is stoped when user log off console session.
Thanks Forrest for the patch

Modified:
    geronimo/server/branches/2.1/plugins/procrun/src/main/resources/bin/service_pr.bat

Modified: geronimo/server/branches/2.1/plugins/procrun/src/main/resources/bin/service_pr.bat
URL: http://svn.apache.org/viewvc/geronimo/server/branches/2.1/plugins/procrun/src/main/resources/bin/service_pr.bat?rev=899553&r1=899552&r2=899553&view=diff
==============================================================================
--- geronimo/server/branches/2.1/plugins/procrun/src/main/resources/bin/service_pr.bat (original)
+++ geronimo/server/branches/2.1/plugins/procrun/src/main/resources/bin/service_pr.bat Fri
Jan 15 08:07:08 2010
@@ -215,9 +215,12 @@
 set PR_STDOUTPUT=%PR_LOGPATH%\geronimosrv.out
 set PR_STDERROR=%PR_LOGPATH%\geronimosrv.err
 
-"%EXECUTABLE%" //IS//%SERVICE_NAME% --StartImage %JAVA_EXE% --StartPath "%GERONIMO_HOME%"
--StartMode exe --StartParams %JAVA_AGENT_OPTS%#-Djava.endorsed.dirs="%GERONIMO_HOME%\lib\endorsed';'%JRE_HOME%\lib\endorsed"#-Djava.ext.dirs="%GERONIMO_HOME%\lib\ext';'%JRE_HOME%\lib\ext"#-Dorg.apache.geronimo.home.dir="%GERONIMO_HOME%"#-Djava.io.tmpdir="%GERONIMO_TMPDIR%"#-jar#"%GERONIMO_HOME%\bin\server.jar"#%STARTUP_ARGS%
--StopImage %JAVA_EXE% --StopPath "%GERONIMO_HOME%" --StopMode exe --StopParams %JAVA_AGENT_OPTS%#-Djava.endorsed.dirs="%GERONIMO_HOME%\lib\endorsed';'%JRE_HOME%\lib\endorsed"#-Djava.ext.dirs="%GERONIMO_HOME%\lib\ext';'%JRE_HOME%\lib\ext"#-Dorg.apache.geronimo.home.dir="%GERONIMO_HOME%"#-Djava.io.tmpdir="%GERONIMO_TMPDIR%"#-jar#"%GERONIMO_HOME%\bin\shutdown.jar"#%SHUTDOWN_ARGS%
+@REM set jvm arguments to avoid killing the service when logging off, when using Sun JDK.
+set JVMARGS=-Xrs
+
+"%EXECUTABLE%" //IS//%SERVICE_NAME% --StartImage %JAVA_EXE% --StartPath "%GERONIMO_HOME%"
--StartMode exe --StartParams %JVMARGS%#%JAVA_AGENT_OPTS%#-Djava.endorsed.dirs="%GERONIMO_HOME%\lib\endorsed';'%JRE_HOME%\lib\endorsed"#-Djava.ext.dirs="%GERONIMO_HOME%\lib\ext';'%JRE_HOME%\lib\ext"#-Dorg.apache.geronimo.home.dir="%GERONIMO_HOME%"#-Djava.io.tmpdir="%GERONIMO_TMPDIR%"#-jar#"%GERONIMO_HOME%\bin\server.jar"#%STARTUP_ARGS%
--StopImage %JAVA_EXE% --StopPath "%GERONIMO_HOME%" --StopMode exe --StopParams %JAVA_AGENT_OPTS%#-Djava.endorsed.dirs="%GERONIMO_HOME%\lib\endorsed';'%JRE_HOME%\lib\endorsed"#-Djava.ext.dirs="%GERONIMO_HOME%\lib\ext';'%JRE_HOME%\lib\ext"#-Dorg.apache.geronimo.home.dir="%GERONIMO_HOME%"#-Djava.io.tmpdir="%GERONIMO_TMPDIR%"#-jar#"%GERONIMO_HOME%\bin\shutdown.jar"#%SHUTDOWN_ARGS%
 if not errorlevel 1 goto installed
-echo Failed to install "%SERVICE_NAME%" service.
+echo Failed to install "%SERVICE_NAME%" service. Refer to the log in var/log/geronimosrv.log
 goto end
 
 :installed



Mime
View raw message