Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

gitblit 879B

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