mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-27 08:48:27 +00:00
Add timestamp and instance to arkserver.log logging
This commit is contained in:
parent
84a0768b6b
commit
8c04aa19a2
@ -1086,7 +1086,7 @@ doStart() {
|
|||||||
|
|
||||||
kill -CONT "$pid"
|
kill -CONT "$pid"
|
||||||
else
|
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
|
fi
|
||||||
tput rc; tput ed;
|
tput rc; tput ed;
|
||||||
logprint "The server is now running, and should be up within 10 minutes"
|
logprint "The server is now running, and should be up within 10 minutes"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user