install-as-service.bat 974 B

1234567891011121314151617181920212223242526
  1. @ECHO off
  2. :: This script relies on nssm.exe to work.
  3. :: Please, download it and make it available on the system path,
  4. :: or copy it to the gitote path.
  5. :: https://nssm.cc/download
  6. :: This script itself should run in the gitote path, too.
  7. :: In case of startup failure, please read carefully the log file.
  8. :: Make sure Gitote work running manually with "gitote web" before running
  9. :: this script.
  10. :: And, please, read carefully the installation docs first:
  11. :: https://gitote.io/docs/installation
  12. :: To unistall the service, run "nssm remove gitote" and restart Windows.
  13. :: Set the folder where you extracted Gitote. Omit the last slash.
  14. SET gitotepath=C:\gitote
  15. nssm install gitote "%gitotepath%\gitote.exe"
  16. nssm set gitote AppParameters "web"
  17. nssm set gitote Description "A painless self-hosted Git service."
  18. nssm set gitote DisplayName "Gitote"
  19. nssm set gitote Start SERVICE_DELAYED_AUTO_START
  20. nssm set gitote AppStdout "%gitotepath%\gitote.log"
  21. nssm start gitote
  22. pause