We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5919efa commit d611c11Copy full SHA for d611c11
1 file changed
wemix/scripts/gwemix.sh
@@ -172,14 +172,16 @@ function start ()
172
[ "$MAX_TXS_PER_BLOCK" = "" ] || OPTS="${OPTS} --maxtxsperblock ${MAX_TXS_PER_BLOCK}"
173
174
[ -d "$d/logs" ] || mkdir -p $d/logs
175
+ [ "$LOG_FILESIZE" = "" ] && LOG_FILESIZE="10M"
176
+ [ "$LOG_FILECOUNT" = "" ] && LOG_FILECOUNT="5"
177
178
cd $d
179
if [ ! "$2" = "inner" ]; then
180
$GWEMIX --datadir ${PWD} --metrics $OPTS 2>&1 | \
- ${d}/bin/logrot ${d}/logs/log 10M 5 &
181
+ ${d}/bin/logrot ${d}/logs/log ${LOG_FILESIZE} ${LOG_FILECOUNT} &
182
else
183
if [ -x "$d/bin/logrot" ]; then
- exec > >($d/bin/logrot $d/logs/log 10M 5)
184
+ exec > >($d/bin/logrot $d/logs/log ${LOG_FILESIZE} ${LOG_FILECOUNT})
185
exec 2>&1
186
fi
187
exec $GWEMIX --datadir ${PWD} --metrics $OPTS
0 commit comments