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

For Docker, log output to a file (unrotated !) #1228

Merged
merged 3 commits into from Jan 14, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 5 additions & 1 deletion docker/node/entry.sh
Expand Up @@ -28,6 +28,10 @@ if [ ! -f "${nanodir}/config.json" ]; then
cp "/usr/share/raiblocks/config/${network}.json" "${nanodir}/config.json"
fi

# Start watching the log file we are going to log output to
logfile="${nanodir}/nano-docker-output.log"
tail -F "${logfile}" &

pid=''
firstTimeComplete=''
while true; do
Expand Down Expand Up @@ -62,4 +66,4 @@ while true; do
rai_node --daemon &
pid="$!"
fi
done
done > "${logfile}" 2>&1