summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2014-01-31 08:02:45 -0500
committerJames Moger <james.moger@gitblit.com>2014-01-31 08:02:45 -0500
commit1219104d67774dd23b0dc64df596533336042c08 (patch)
tree1a7accf7a11f64607bd8ea297c3fa98b8402aca8 /src/main
parente536e05fd5a71f25595839f097984c9c922530bb (diff)
downloadgitblit-1219104d67774dd23b0dc64df596533336042c08.tar.gz
gitblit-1219104d67774dd23b0dc64df596533336042c08.zip
Redirect Centos service output to a log file (issue-348)
Diffstat (limited to 'src/main')
-rw-r--r--src/main/distrib/linux/service-centos.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/distrib/linux/service-centos.sh b/src/main/distrib/linux/service-centos.sh
index 5276104d..b6170c5e 100644
--- a/src/main/distrib/linux/service-centos.sh
+++ b/src/main/distrib/linux/service-centos.sh
@@ -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