From 1c921915738cdcc68e4a1a910b5f5cdf18c2101e Mon Sep 17 00:00:00 2001 From: James Moger Date: Tue, 28 Jun 2011 22:37:25 -0400 Subject: [PATCH] Windows service changes. Documentation. * Renamed prunsrv.exe to gitblit.exe so that task manager shows more useful information. * Documented how to configure the service to use a server VM, if a JDK is present. --- distrib/amd64/{prunsrv.exe => gitblit.exe} | Bin distrib/ia64/{prunsrv.exe => gitblit.exe} | Bin distrib/installService.cmd | 2 +- distrib/uninstallService.cmd | 2 +- distrib/x86/{prunsrv.exe => gitblit.exe} | Bin docs/01_setup.mkd | 10 ++++++++++ 6 files changed, 12 insertions(+), 2 deletions(-) rename distrib/amd64/{prunsrv.exe => gitblit.exe} (100%) rename distrib/ia64/{prunsrv.exe => gitblit.exe} (100%) rename distrib/x86/{prunsrv.exe => gitblit.exe} (100%) 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 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 diff --git a/distrib/installService.cmd b/distrib/installService.cmd index 42225890..77b641e8 100644 --- a/distrib/installService.cmd +++ b/distrib/installService.cmd @@ -13,7 +13,7 @@ SET ARCH=amd64 @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 a40823fc..481983cd 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 diff --git a/docs/01_setup.mkd b/docs/01_setup.mkd index eca0be25..a601e682 100644 --- a/docs/01_setup.mkd +++ b/docs/01_setup.mkd @@ -62,6 +62,16 @@ Additional service definition options and runtime capabilities of `gitblitw.exe` **NOTE:**
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.
+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
+	Java Virtual Machine:
+	C:\Program Files\Java\jre6\bin\server\jvm.dll
+ #### Command-Line Parameters Command-Line parameters override the values in `gitblit.properties` at runtime. -- 2.39.5