From 41a25c0a672086e710100e80814ae8207a747bbe Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sat, 16 Nov 2013 23:18:57 +0000 Subject: [PATCH] UT99server: Moved sleep in fn_startserver --- UnrealTournament99/ut99server | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UnrealTournament99/ut99server b/UnrealTournament99/ut99server index e5da68a89..1650a9154 100644 --- a/UnrealTournament99/ut99server +++ b/UnrealTournament99/ut99server @@ -470,8 +470,8 @@ mv ${scriptlog} ${scriptlogdate} mv ${consolelog} ${consolelogdate} cd ${systemdir} tmux new-session -d -s ${servicename} "./ucc-bin ${parms} |tee -a ${consolelog}" -tmuxwc=$(tmux list-sessions 2>&1|awk '{print $1}'|grep ${servicename}|wc -l) sleep 1 +tmuxwc=$(tmux list-sessions 2>&1|awk '{print $1}'|grep ${servicename}|wc -l) if [ ${tmuxwc} -eq 0 ];then echo -en "\r[\e[0;31m FAIL \e[0;39m] Starting ${servicename}: Failed to start ${servername}" echo -e "$(date '+%b %d %H:%M:%S') ${servicename}: failed to start ${servername}" >> ${scriptlog}