Author: mladen.turk(a)jboss.com
Date: 2008-04-03 12:45:27 -0400 (Thu, 03 Apr 2008)
New Revision: 1514
Modified:
trunk/utils/windows/native/service/examples/service.bat
trunk/utils/windows/native/service/jbosssvc/jboss.c
Log:
Fix shutting down service on logoff event
Modified: trunk/utils/windows/native/service/examples/service.bat
===================================================================
--- trunk/utils/windows/native/service/examples/service.bat 2008-04-03 12:25:19 UTC (rev
1513)
+++ trunk/utils/windows/native/service/examples/service.bat 2008-04-03 16:45:27 UTC (rev
1514)
@@ -22,6 +22,9 @@
set SVCDESC=JBoss Application Server @VERSION@/Platform: @VERSION_PLATFORM@
set NOPAUSE=Y
+REM Suppress killing service on logoff event
+set JAVA_OPTS=-Xrs
+
REM Figure out the running mode
if /I "%1" == "install" goto cmdInstall
Modified: trunk/utils/windows/native/service/jbosssvc/jboss.c
===================================================================
--- trunk/utils/windows/native/service/jbosssvc/jboss.c 2008-04-03 12:25:19 UTC (rev
1513)
+++ trunk/utils/windows/native/service/jbosssvc/jboss.c 2008-04-03 16:45:27 UTC (rev
1514)
@@ -841,7 +841,7 @@
return TRUE;
break;
case CTRL_LOGOFF_EVENT:
- if (_service_mode == mode_run) {
+ if (_service_mode == mode_debug) {
ServiceStop();
}
return TRUE;
Show replies by date