Author: mladen.turk(a)jboss.com
Date: 2012-12-20 01:37:31 -0500 (Thu, 20 Dec 2012)
New Revision: 2976
Modified:
trunk/utils/windows/native/service/jbosssvc/jboss.c
Log:
Add ShutdownTimeout on install
Modified: trunk/utils/windows/native/service/jbosssvc/jboss.c
===================================================================
--- trunk/utils/windows/native/service/jbosssvc/jboss.c 2012-12-20 06:14:10 UTC (rev
2975)
+++ trunk/utils/windows/native/service/jbosssvc/jboss.c 2012-12-20 06:37:31 UTC (rev
2976)
@@ -462,6 +462,13 @@
goto cleanup;
}
}
+ rc = RegSetValueEx(hKey, REG_SHTMO, 0, REG_DWORD,
+ (CONST BYTE *)&_service_shtm,
+ sizeof(DWORD));
+ if (rc != ERROR_SUCCESS) {
+ rv = FALSE;
+ goto cleanup;
+ }
if (lstrlen(_working_path)) {
rc = RegSetValueEx(hKey, REG_WPATH, 0, REG_SZ,
(CONST BYTE *)_working_path,