]> source.dussan.org Git - gitblit.git/commitdiff
Redirect Centos service output to a log file (issue-348)
authorJames Moger <james.moger@gitblit.com>
Fri, 31 Jan 2014 13:02:45 +0000 (08:02 -0500)
committerJames Moger <james.moger@gitblit.com>
Fri, 31 Jan 2014 13:02:45 +0000 (08:02 -0500)
src/main/distrib/linux/service-centos.sh

index 5276104d91066af2d19e53e129a36b2e5a4e8dea..b6170c5e1880e8b9456592adbc98b9ae1c9910bb 100644 (file)
@@ -9,6 +9,7 @@ GITBLIT_PATH=/opt/gitblit
 GITBLIT_BASE_FOLDER=/opt/gitblit/data
 GITBLIT_HTTP_PORT=0
 GITBLIT_HTTPS_PORT=8443
+GITBLIT_LOG=/var/log/gitblit.log
 source ${GITBLIT_PATH}/java-proxy-config.sh
 JAVA="java -server -Xmx1024M ${JAVA_PROXY_CONFIG} -Djava.awt.headless=true -jar"
 
@@ -20,7 +21,7 @@ case "$1" in
       then
       echo $"Starting gitblit server"
       cd $GITBLIT_PATH
-      $JAVA $GITBLIT_PATH/gitblit.jar --httpsPort $GITBLIT_HTTPS_PORT --httpPort $GITBLIT_HTTP_PORT --baseFolder $GITBLIT_BASE_FOLDER > /dev/null &
+      $JAVA $GITBLIT_PATH/gitblit.jar --httpsPort $GITBLIT_HTTPS_PORT --httpPort $GITBLIT_HTTP_PORT --baseFolder $GITBLIT_BASE_FOLDER > $GITBLIT_LOG 2>&1 &
       echo "."
       exit $RETVAL
     fi