Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: ae0b135ecd
Fetching contributors…

Cannot retrieve contributors at this time

34 lines (28 sloc) 0.716 kb
#!/bin/sh
set -e
GITBLIT_PATH=/opt/gitblit/
GITBLIT_HTTP_PORT=0
GITBLIT_HTTPS_PORT=8443
JAVA="java -server -Xmx1024M -jar"
. /lib/lsb/init-functions
case "$1" in
start)
log_action_begin_msg "Starting gitblit server"
$JAVA $GITBLIT_PATH/gitblit.jar --httpsPort $GITBLIT_HTTPS_PORT --httpPort $GITBLIT_HTTP_PORT &
log_action_end_msg $?
;;
stop)
log_action_begin_msg "Stopping gitblit server"
$JAVA $GITBLIT_PATH/gitblit.jar --stop &
log_action_end_msg $?
;;
force-reload|restart)
$0 stop
$0 start
;;
*)
echo "Usage: /etc/init.d/gitblit {start|stop|restart|force-reload}"
exit 1
;;
esac
exit 0
Jump to Line
Something went wrong with that request. Please try again.