James Moger
2012-03-28 6fdbc6b5bdb805d1faefe3f26105d5adfa37d5a1
distrib/gitblit-centos
@@ -1,5 +1,6 @@
#!/bin/bash
# chkconfig: 3 21 91
# description: Starts and Stops gitblit
# Source function library.
. /etc/init.d/functions
@@ -16,6 +17,7 @@
    if [ -f $GITBLIT_PATH/gitblit.jar ];
      then
      echo $"Starting gitblit server"
      cd $GITBLIT_PATH
      $JAVA $GITBLIT_PATH/gitblit.jar --httpsPort $GITBLIT_HTTPS_PORT --httpPort $GITBLIT_HTTP_PORT > /dev/null &
      echo "."
      exit $RETVAL
@@ -25,7 +27,8 @@
  stop)
    if [ -f $GITBLIT_PATH/gitblit.jar ];
      then
      echo $"Starting gitblit server"
      echo $"Stopping gitblit server"
      cd $GITBLIT_PATH
      $JAVA $GITBLIT_PATH/gitblit.jar --stop > /dev/null &
      echo "."
      exit $RETVAL