Created
February 8, 2012 06:22
-
-
Save computercolin/1766033 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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