Add timestamp and instance to arkserver.log logging

This commit is contained in:
Ben Peddell 2017-01-12 08:36:17 +10:00
parent 84a0768b6b
commit 8c04aa19a2

View File

@ -1086,7 +1086,7 @@ doStart() {
kill -CONT "$pid"
else
doRun </dev/null >>"$logdir/$arkserverLog" 2>&1 & # output of this command is logged
doRun </dev/null > >(while read -r l; do printf "%s: [%s] %s\n" "$(timestamp)" "${instance}" "${l}" >>"$logdir/$arkserverLog"; done) 2>&1 & # output of this command is logged
fi
tput rc; tput ed;
logprint "The server is now running, and should be up within 10 minutes"