mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-14 11:48:26 +00:00
Add timestamp and instance name to arkserver.log log entries
This commit is contained in:
parent
db592eeb40
commit
37db49f6f5
@ -1064,7 +1064,7 @@ doStart() {
|
||||
|
||||
local pid=$!
|
||||
if [[ -n "$arkPriorityBoost" || -n "$arkCpuAffinity" ]]; then
|
||||
doRun --wait </dev/null >>"$logdir/$arkserverLog" 2>&1 & # output of this command is logged
|
||||
doRun --wait </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
|
||||
local pid="$!"
|
||||
|
||||
# Wait for monitor process to suspend itself
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user