Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge v0.10.6 #70

Merged
merged 5 commits into from
Dec 22, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
wemix/scripts/gwemix.sh: Added log file size and count settings using…
… .rc files.
cp-wjhan committed Dec 6, 2023
commit d611c1107ff3d063df712477caf6abb21370e1d6
6 changes: 4 additions & 2 deletions wemix/scripts/gwemix.sh
Original file line number Diff line number Diff line change
@@ -172,14 +172,16 @@ function start ()
[ "$MAX_TXS_PER_BLOCK" = "" ] || OPTS="${OPTS} --maxtxsperblock ${MAX_TXS_PER_BLOCK}"

[ -d "$d/logs" ] || mkdir -p $d/logs
[ "$LOG_FILESIZE" = "" ] && LOG_FILESIZE="10M"
[ "$LOG_FILECOUNT" = "" ] && LOG_FILECOUNT="5"

cd $d
if [ ! "$2" = "inner" ]; then
$GWEMIX --datadir ${PWD} --metrics $OPTS 2>&1 | \
${d}/bin/logrot ${d}/logs/log 10M 5 &
${d}/bin/logrot ${d}/logs/log ${LOG_FILESIZE} ${LOG_FILECOUNT} &
else
if [ -x "$d/bin/logrot" ]; then
exec > >($d/bin/logrot $d/logs/log 10M 5)
exec > >($d/bin/logrot $d/logs/log ${LOG_FILESIZE} ${LOG_FILECOUNT})
exec 2>&1
fi
exec $GWEMIX --datadir ${PWD} --metrics $OPTS