James Moger
2011-06-28 d39680e9f54322ddcb40b00503a8ee30aee6c99c
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.
16 "%CD%\%ARCH%\prunsrv.exe"  //IS//gitblit ^
17          --DisplayName="gitblit" ^
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