James Moger
2012-02-03 fe7c01a8bd76dff240e74bb770212911e227ba59
commit | author | age
d39680 1 @REM Install Gitblit as a Windows service.
JM 2
3 @REM gitblitw.exe (prunmgr.exe) is a GUI application for monitoring 
4 @REM and configuring the Gitblit procrun service.
5 @REM
6 @REM By default this tool launches the service properties dialog
7 @REM but it also has some other very useful functionality.
8 @REM
9 @REM http://commons.apache.org/daemon/procrun.html
10
11 @REM arch = x86, amd64, or ia32
12 SET ARCH=amd64
13
14 @REM Be careful not to introduce trailing whitespace after the ^ characters.
15 @REM Use ; or # to separate values in the --StartParams parameter.
1c9219 16 "%CD%\%ARCH%\gitblit.exe"  //IS//gitblit ^
d39680 17          --DisplayName="gitblit" ^
JM 18          --Description="a pure Java Git solution" ^
19          --Startup=auto ^
20          --LogPath="%CD%\logs" ^
21          --LogLevel=INFO ^
22          --LogPrefix=gitblit ^
23          --StdOutput=auto ^
24          --StdError=auto ^
25          --StartPath="%CD%" ^
26          --StartClass=com.gitblit.Launcher ^
27          --StartMethod=main ^
28          --StartParams="--storePassword;gitblit" ^
29          --StartMode=jvm ^
30          --StopPath="%CD%" ^
31          --StopClass=com.gitblit.Launcher ^
32          --StopMethod=main ^
33          --StopParams="--stop" ^
34          --StopMode=jvm ^
35          --Classpath="%CD%\gitblit.jar" ^
36          --Jvm=auto ^
37          --JvmMx=1024
38