Skip to content

Instantly share code, notes, and snippets.

@computercolin
Created February 8, 2012 06:22
Show Gist options
  • Save computercolin/1766033 to your computer and use it in GitHub Desktop.
Save computercolin/1766033 to your computer and use it in GitHub Desktop.
#!/bin/sh
JAVA="java -server -Xmx1024M -jar"
SCRIPT_DIR="$( cd "$( dirname "$0" )" && pwd )"
case "$1" in
start)
cd $SCRIPT_DIR
$JAVA gitblit.jar
;;
stop)
cd $SCRIPT_DIR
$JAVA gitblit.jar --stop
;;
*)
echo "Usage: /etc/init.d/gitblit {start|stop}"
exit 1
;;
esac
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment