From fbc232c809058a7dff78bd17556eb5a404fa274b Mon Sep 17 00:00:00 2001 From: Raywill Date: Sat, 23 Apr 2016 15:35:38 +0800 Subject: [PATCH] init script call gogs with wrong params we should run gogs like ``` gogs run web ``` instead of ``` gogs web ``` Otherwise we would get error like below in log file. ``` [rh@CloudY gogs]# gogs web Usage: gogs run COMMAND [options] gogs scale TYPE=NUM gogs logs [--tail|-n NUMBER] gogs config:get VAR gogs config:set VAR=VALUE gogs configure gogs reconfigure ``` --- scripts/init/centos/gogs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/init/centos/gogs b/scripts/init/centos/gogs index cacf57423..fbb1c6703 100644 --- a/scripts/init/centos/gogs +++ b/scripts/init/centos/gogs @@ -49,7 +49,7 @@ DAEMON_OPTS="--check $NAME" start() { cd ${GOGS_HOME} echo -n "Starting ${SERVICENAME}: " - daemon $DAEMON_OPTS "${GOGS_PATH} web > ${LOGFILE} 2>&1 &" + daemon $DAEMON_OPTS "${GOGS_PATH} run web > ${LOGFILE} 2>&1 &" RETVAL=$? echo [ $RETVAL = 0 ] && touch ${LOCKFILE}