Commit 1019b95a authored by sim's avatar sim

Fix setup of scrapyd logs directory

parent 06dfaf2f
......@@ -15,9 +15,9 @@ PATH=$PATH:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=${SCRAPYD:-$(which scrapyd)}
NAME=gargantext-scrapyd
DESC=gargantext-scrapyd
LOGDIR=scrapyd/logs
LOGDIR=$(grep -oP '^\s*logs_dir\s*=\s*\K.+' $GARGANTEXT_CONF | tail -1)
PIDFILE="/tmp/$NAME.pid"
DAEMON_ARGS="-l $LOGDIR/scrapyd.log --pidfile=$PIDFILE"
DAEMON_ARGS="--logfile $LOGDIR/scrapyd.log --pidfile=$PIDFILE"
SCRIPTNAME="$0"
# Exit if the package is not installed
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment