Log the command used to launch the server

This commit is contained in:
Ben Peddell 2015-09-29 11:05:01 +10:00
parent 17dd16a830
commit d27eff2861

View File

@ -466,6 +466,9 @@ doRun() {
# Auto-restart loop
while [ $restartserver -ne 0 ]; do
echo -n "`timestamp`: Running"
printf " %q" "$arkserverroot/$arkserverexec" "$arkserveropts" "${arkextraopts[@]}"
echo
# Put the server process into the background so we can monitor it
"$arkserverroot/$arkserverexec" "$arkserveropts" "${arkextraopts[@]}" &
# Grab the server PID