From 1c921915738cdcc68e4a1a910b5f5cdf18c2101e Mon Sep 17 00:00:00 2001
From: James Moger <james.moger@gitblit.com>
Date: Tue, 28 Jun 2011 22:37:25 -0400
Subject: [PATCH] Windows service changes. Documentation.

---
 docs/01_setup.mkd            |   10 ++++++++++
 distrib/installService.cmd   |    2 +-
 distrib/ia64/gitblit.exe     |    0 
 distrib/amd64/gitblit.exe    |    0 
 distrib/uninstallService.cmd |    2 +-
 distrib/x86/gitblit.exe      |    0 
 6 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/distrib/amd64/prunsrv.exe b/distrib/amd64/gitblit.exe
similarity index 100%
rename from distrib/amd64/prunsrv.exe
rename to distrib/amd64/gitblit.exe
Binary files differ
diff --git a/distrib/ia64/prunsrv.exe b/distrib/ia64/gitblit.exe
similarity index 100%
rename from distrib/ia64/prunsrv.exe
rename to distrib/ia64/gitblit.exe
Binary files differ
diff --git a/distrib/installService.cmd b/distrib/installService.cmd
index 4222589..77b641e 100644
--- a/distrib/installService.cmd
+++ b/distrib/installService.cmd
@@ -13,7 +13,7 @@
 
 @REM Be careful not to introduce trailing whitespace after the ^ characters.
 @REM Use ; or # to separate values in the --StartParams parameter.
-"%CD%\%ARCH%\prunsrv.exe"  //IS//gitblit ^
+"%CD%\%ARCH%\gitblit.exe"  //IS//gitblit ^
 		 --DisplayName="gitblit" ^
 		 --Description="a pure Java Git solution" ^
 		 --Startup=auto ^
diff --git a/distrib/uninstallService.cmd b/distrib/uninstallService.cmd
index a40823f..481983c 100644
--- a/distrib/uninstallService.cmd
+++ b/distrib/uninstallService.cmd
@@ -2,4 +2,4 @@
 SET ARCH=amd64
 
 @REM Delete the gitblit service
-"%CD%\%ARCH%\prunsrv.exe" //DS//gitblit
\ No newline at end of file
+"%CD%\%ARCH%\gitblitv.exe" //DS//gitblit
\ No newline at end of file
diff --git a/distrib/x86/prunsrv.exe b/distrib/x86/gitblit.exe
similarity index 100%
rename from distrib/x86/prunsrv.exe
rename to distrib/x86/gitblit.exe
Binary files differ
diff --git a/docs/01_setup.mkd b/docs/01_setup.mkd
index eca0be2..a601e68 100644
--- a/docs/01_setup.mkd
+++ b/docs/01_setup.mkd
@@ -62,6 +62,16 @@
 **NOTE:**<br/>
 If you change the name of the service from *gitblit* you must also change the name of `gitblitw.exe` to match the new service name otherwise the connection between the service and the utility is lost, at least to double-click execution. 
 
+#### VM Considerations
+By default, the service installation script configures your Windows service to use your default JVM.  This setup usually defaults to a client VM.<br/>
+If you have installed a JDK, you might consider using the `gitblitw.exe` utility to manually specify the *server* VM.
+
+1. Execute `gitblitw.exe`
+2. On the *Java* tab uncheck *Use default*.
+3. Manually navigate your filesystem and specify the server VM with the `...` button<br/><pre>
+	Java Virtual Machine:
+	C:\Program Files\Java\jre6\bin\server\jvm.dll</pre>
+
 #### Command-Line Parameters
 Command-Line parameters override the values in `gitblit.properties` at runtime.
 

--
Gitblit v1.9.1