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.

gitblit 716B

123456789101112131415161718192021222324252627282930313233
  1. #!/bin/sh
  2. set -e
  3. GITBLIT_PATH=/opt/gitblit/
  4. GITBLIT_HTTP_PORT=0
  5. GITBLIT_HTTPS_PORT=8443
  6. JAVA="java -server -Xmx1024M -jar"
  7. . /lib/lsb/init-functions
  8. case "$1" in
  9. start)
  10. log_action_begin_msg "Starting gitblit server"
  11. $JAVA $GITBLIT_PATH/gitblit.jar --httpsPort $GITBLIT_HTTPS_PORT --httpPort $GITBLIT_HTTP_PORT &
  12. log_action_end_msg $?
  13. ;;
  14. stop)
  15. log_action_begin_msg "Stopping gitblit server"
  16. $JAVA $GITBLIT_PATH/gitblit.jar --stop &
  17. log_action_end_msg $?
  18. ;;
  19. force-reload|restart)
  20. $0 stop
  21. $0 start
  22. ;;
  23. *)
  24. echo "Usage: /etc/init.d/gitblit {start|stop|restart|force-reload}"
  25. exit 1
  26. ;;
  27. esac
  28. exit 0