You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

installService.cmd 1.2KB

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