summaryrefslogtreecommitdiffstats
path: root/src/main/distrib/win/installService.cmd
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/distrib/win/installService.cmd')
-rw-r--r--src/main/distrib/win/installService.cmd38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/main/distrib/win/installService.cmd b/src/main/distrib/win/installService.cmd
new file mode 100644
index 00000000..a684ab21
--- /dev/null
+++ b/src/main/distrib/win/installService.cmd
@@ -0,0 +1,38 @@
+@REM Install Gitblit as a Windows service.
+
+@REM gitblitw.exe (prunmgr.exe) is a GUI application for monitoring
+@REM and configuring the Gitblit procrun service.
+@REM
+@REM By default this tool launches the service properties dialog
+@REM but it also has some other very useful functionality.
+@REM
+@REM http://commons.apache.org/daemon/procrun.html
+
+@REM arch = x86, amd64, or ia32
+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%\gitblit.exe" //IS//gitblit ^
+ --DisplayName="gitblit" ^
+ --Description="a pure Java Git solution" ^
+ --Startup=auto ^
+ --LogPath="%CD%\logs" ^
+ --LogLevel=INFO ^
+ --LogPrefix=gitblit ^
+ --StdOutput=auto ^
+ --StdError=auto ^
+ --StartPath="%CD%" ^
+ --StartClass=org.moxie.MxLauncher ^
+ --StartMethod=main ^
+ --StartParams="--storePassword;gitblit;--baseFolder;%CD%\data" ^
+ --StartMode=jvm ^
+ --StopPath="%CD%" ^
+ --StopClass=org.moxie.MxLauncher ^
+ --StopMethod=main ^
+ --StopParams="--stop;--baseFolder;%CD%\data" ^
+ --StopMode=jvm ^
+ --Classpath="%CD%\gitblit.jar" ^
+ --Jvm=auto ^
+ --JvmMx=1024
+ \ No newline at end of file