From 6c377f5e9da0fccc797d8a4eb3ecc0902c8e5202 Mon Sep 17 00:00:00 2001
From: Daniel Gibbs <me@danielgibbs.co.uk>
Date: Mon, 1 Mar 2021 21:30:41 +0000
Subject: [PATCH] fix(post-details): prevent password showing in start
 parameters (#3315)

* remove remaining fn_parms

* remove ${parms}

* updated UI and comments

* add server date and other details improvements

* fix(post-details): prevent serverpassword showing in start parameters
---
 lgsm/functions/alert.sh               |   2 +
 lgsm/functions/command_debug.sh       |  15 +-
 lgsm/functions/command_details.sh     |   1 -
 lgsm/functions/command_postdetails.sh |   1 -
 lgsm/functions/command_start.sh       |   8 +-
 lgsm/functions/fix_av.sh              |   8 +-
 lgsm/functions/fix_kf2.sh             |   4 +-
 lgsm/functions/fix_ut3.sh             |   4 +-
 lgsm/functions/info_distro.sh         |   3 +
 lgsm/functions/info_messages.sh       | 229 +++++++++++++-------------
 tests/tests_fctrserver.sh             |  50 +++---
 tests/tests_jc2server.sh              |  64 +++----
 tests/tests_mcserver.sh               |  54 +++---
 tests/tests_ts3server.sh              |  50 +++---
 14 files changed, 247 insertions(+), 246 deletions(-)

diff --git a/lgsm/functions/alert.sh b/lgsm/functions/alert.sh
index 916f80e67..5fd999728 100755
--- a/lgsm/functions/alert.sh
+++ b/lgsm/functions/alert.sh
@@ -7,6 +7,8 @@
 
 functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
+# Generates alert log of the details at the time of the alert.
+# Used with email alerts.
 fn_alert_log(){
 	info_distro.sh
 	info_config.sh
diff --git a/lgsm/functions/command_debug.sh b/lgsm/functions/command_debug.sh
index 07871ce00..7925e3ff9 100755
--- a/lgsm/functions/command_debug.sh
+++ b/lgsm/functions/command_debug.sh
@@ -29,7 +29,6 @@ fix.sh
 info_distro.sh
 info_config.sh
 # NOTE: Check if works with server without parms. Could be intergrated in to info_parms.sh.
-fn_parms
 fn_print_header
 {
 	echo -e "${lightblue}Distro:\t\t${default}${distroname}"
@@ -70,11 +69,11 @@ if [ "${serverpassword}" ]; then
 fi
 echo -e "${lightblue}Start parameters:${default}"
 if [ "${engine}" == "source" ]||[ "${engine}" == "goldsrc" ]; then
-	echo -e "${executable} ${parms} -debug"
+	echo -e "${executable} ${startparameters} -debug"
 elif [ "${engine}" == "quake" ]; then
-	echo -e "${executable} ${parms} -condebug"
+	echo -e "${executable} ${startparameters} -condebug"
 else
-	echo -e "${preexecutable} ${executable} ${parms}"
+	echo -e "${preexecutable} ${executable} ${startparameters}"
 fi
 echo -e ""
 echo -e "Use for identifying server issues only!"
@@ -104,19 +103,19 @@ fn_script_log_info "Lockfile generated"
 fn_script_log_info "${lockdir}/${selfname}.lock"
 
 cd "${executabledir}" || exit
-# Note: do not add double quotes to ${executable} ${parms}.
+# Note: do not add double quotes to ${executable} ${startparameters}.
 if [ "${engine}" == "source" ]||[ "${engine}" == "goldsrc" ]; then
-	${executable} ${parms} -debug
+	${executable} ${startparameters} -debug
 elif [ "${shortname}" == "arma3" ]; then
 	# Arma3 requires semicolons in the module list, which need to
 	# be escaped for regular (tmux) loading, but need to be
 	# stripped when loading straight from the console.
 	${executable} ${parms//\\;/;}
 elif [ "${engine}" == "quake" ]; then
-	${executable} ${parms} -condebug
+	${executable} ${startparameters} -condebug
 else
 	# shellcheck disable=SC2086
-	${preexecutable} ${executable} ${parms}
+	${preexecutable} ${executable} ${startparameters}
 fi
 
 fn_lockfile_trap
diff --git a/lgsm/functions/command_details.sh b/lgsm/functions/command_details.sh
index 8f2a03a98..14765ca99 100755
--- a/lgsm/functions/command_details.sh
+++ b/lgsm/functions/command_details.sh
@@ -32,7 +32,6 @@ fn_info_message_script
 fn_info_message_backup
 # Some game servers do not have parms.
 if [ "${shortname}" != "ts3" ]&&[ "${shortname}" != "jc2" ]&&[ "${shortname}" != "dst" ]&&[ "${shortname}" != "pz" ]&&[ "${engine}" != "renderware" ]; then
-	fn_parms
 	fn_info_message_commandlineparms
 fi
 fn_info_message_ports
diff --git a/lgsm/functions/command_postdetails.sh b/lgsm/functions/command_postdetails.sh
index 811938380..fa2907b1e 100755
--- a/lgsm/functions/command_postdetails.sh
+++ b/lgsm/functions/command_postdetails.sh
@@ -52,7 +52,6 @@ else
 		fn_info_message_backup
 		# Some game servers do not have parms.
 		if [ "${shortname}" != "jc2" ]&&[ "${shortname}" != "jc3" ]&&[ "${shortname}" != "dst" ]&&[ "${shortname}" != "pz" ]&&[ "${engine}" != "renderware" ]; then
-			fn_parms
 			fn_info_message_commandlineparms
 		fi
 		fn_info_message_ports
diff --git a/lgsm/functions/command_start.sh b/lgsm/functions/command_start.sh
index 998749a59..7dc4c962e 100755
--- a/lgsm/functions/command_start.sh
+++ b/lgsm/functions/command_start.sh
@@ -41,9 +41,7 @@ fn_start_jk2(){
 
 fn_start_tmux(){
 	if [ "${parmsbypass}" ]; then
-		parms=""
-	else
-		fn_parms
+		startparameters=""
 	fi
 	# check for tmux size variables.
 	if [[ "${servercfgtmuxwidth}" =~ ^[0-9]+$ ]]; then
@@ -74,7 +72,7 @@ fn_start_tmux(){
 	echo "${version}" >> "${lockdir}/${selfname}.lock"
 	echo "${port}" >> "${lockdir}/${selfname}.lock"
 	cd "${executabledir}" || exit
-	tmux new-session -d -x "${sessionwidth}" -y "${sessionheight}" -s "${sessionname}" "${preexecutable} ${executable} ${parms}" 2> "${lgsmlogdir}/.${selfname}-tmux-error.tmp"
+	tmux new-session -d -x "${sessionwidth}" -y "${sessionheight}" -s "${sessionname}" "${preexecutable} ${executable} ${startparameters}" 2> "${lgsmlogdir}/.${selfname}-tmux-error.tmp"
 
 	# Create logfile.
 	touch "${consolelog}"
@@ -128,7 +126,7 @@ fn_start_tmux(){
 			echo -e ""
 			echo -e "Command"
 			echo -e "================================="
-			echo -e "tmux new-session -d -s \"${sessionname}\" \"${preexecutable} ${executable} ${parms}\"" | tee -a "${lgsmlog}"
+			echo -e "tmux new-session -d -s \"${sessionname}\" \"${preexecutable} ${executable} ${startparameters}\"" | tee -a "${lgsmlog}"
 			echo -e ""
 			echo -e "Error"
 			echo -e "================================="
diff --git a/lgsm/functions/fix_av.sh b/lgsm/functions/fix_av.sh
index 6aed64f5e..f34a01c37 100755
--- a/lgsm/functions/fix_av.sh
+++ b/lgsm/functions/fix_av.sh
@@ -10,14 +10,10 @@ functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${serverfiles}:${serverfiles}/linux64"
 
 if [ "${postinstall}" == "1" ]; then
-	fn_parms(){
-		parms="--datapath ${avdatapath} --galaxy-name ${selfname} --init-folders-only"
-	}
-
+	startparameters="--datapath ${avdatapath} --galaxy-name ${selfname} --init-folders-only"
 	fn_print_information "starting ${gamename} server to generate configs."
 	fn_sleep_time
 	# go to the executeable dir and start the init of the server
 	cd "${systemdir}" || return 2
-	fn_parms
-	"${executabledir}/${executable}" ${parms}
+	"${executabledir}/${executable}" ${startparameters}
 fi
diff --git a/lgsm/functions/fix_kf2.sh b/lgsm/functions/fix_kf2.sh
index d9f8c82b4..b680a9937 100755
--- a/lgsm/functions/fix_kf2.sh
+++ b/lgsm/functions/fix_kf2.sh
@@ -7,9 +7,7 @@
 
 functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
-fn_parms(){
-parms="\"${defaultmap}?Game=KFGameContent.KFGameInfo_VersusSurvival\""
-}
+startparameters="\"${defaultmap}?Game=KFGameContent.KFGameInfo_VersusSurvival\""
 
 fn_print_information "starting ${gamename} server to generate configs."
 fn_sleep_time
diff --git a/lgsm/functions/fix_ut3.sh b/lgsm/functions/fix_ut3.sh
index d3b6f824b..6bd26a53a 100755
--- a/lgsm/functions/fix_ut3.sh
+++ b/lgsm/functions/fix_ut3.sh
@@ -7,9 +7,7 @@
 
 functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
-fn_parms(){
-parms="server VCTF-Suspense?Game=UTGameContent.UTVehicleCTFGame_Content?bIsDedicated=true?bIsLanMatch=false?bUsesStats=false?bShouldAdvertise=false?PureServer=1?bAllowJoinInProgress=true?ConfigSubDir=${selfname} -port=${port} -queryport=${queryport} -multihome=${ip} -nohomedir -unattended -log=${gamelog}"
-}
+startparameters="server VCTF-Suspense?Game=UTGameContent.UTVehicleCTFGame_Content?bIsDedicated=true?bIsLanMatch=false?bUsesStats=false?bShouldAdvertise=false?PureServer=1?bAllowJoinInProgress=true?ConfigSubDir=${selfname} -port=${port} -queryport=${queryport} -multihome=${ip} -nohomedir -unattended -log=${gamelog}"
 
 fn_print_information "starting ${gamename} server to generate configs."
 fn_sleep_time
diff --git a/lgsm/functions/info_distro.sh b/lgsm/functions/info_distro.sh
index 7e0e6534d..697ee007d 100755
--- a/lgsm/functions/info_distro.sh
+++ b/lgsm/functions/info_distro.sh
@@ -74,6 +74,9 @@ if [ "${status}" == "1" ]&&[ "${tmuxv}" != "1.8" ]; then
 	gameserverpid=$(tmux list-sessions -F "#{session_name} #{pane_pid}" | grep "^${sessionname} " | awk '{print $NF}')
 fi
 
+## Date
+date="$(date)"
+
 ## Uptime
 uptime=$(</proc/uptime)
 uptime=${uptime/[. ]*/}
diff --git a/lgsm/functions/info_messages.sh b/lgsm/functions/info_messages.sh
index 23ca5e53e..ceed4cb00 100755
--- a/lgsm/functions/info_messages.sh
+++ b/lgsm/functions/info_messages.sh
@@ -7,12 +7,57 @@
 
 functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
-# Standard Details
-# This applies to all engines
+# Separator is different for details
+fn_messages_separator(){
+	if [ "${commandname}" == "DETAILS" ]; then
+		printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' =
+	else
+		echo -e "================================="
+	fi
+}
+
+# Removes the passwords form all but details.
+fn_info_message_password_strip(){
+	if [ "${commandname}" != "DETAILS" ]; then
+		if [ "${serverpassword}" ]; then
+			serverpassword="********"
+		fi
+
+		if [ "${rconpassword}" ]; then
+			rconpassword="********"
+		fi
+
+		if [ "${adminpassword}" ]; then
+			adminpassword="********"
+		fi
+
+		if [ "${statspassword}" ]; then
+			statspassword="********"
+		fi
 
+		if [ "${webadminpass}" ]; then
+			webadminpass="********"
+		fi
+
+		if [ "${telnetpass}" ]; then
+			telnetpass="********"
+		fi
+
+		if [ "${wsapikey}" ]; then
+			wsapikey="********"
+		fi
+
+		if [ "${gslt}" ]; then
+			gslt="********"
+		fi
+	fi
+}
+
+# Alert Summary
+# used with alertlog
 fn_info_message_head(){
 	echo -e ""
-	echo -e "${lightyellow}Summary${default}"
+	echo -e "${lightyellow}Alert Summary${default}"
 	fn_messages_separator
 	echo -e "Message"
 	echo -e "${alertbody}"
@@ -27,28 +72,27 @@ fn_info_message_head(){
 	echo -e "${HOSTNAME}"
 	echo -e ""
 	echo -e "Server IP"
-	if [ "${multiple_ip}" == "1" ]; then
-		echo -e "NOT SET"
-	else
-		echo -e "${ip}:${port}"
-	fi
+	echo -e "${ip}:${port}"
 }
 
 fn_info_message_distro(){
 	#
 	# Distro Details
-	# =====================================
-	# Distro:    Ubuntu 14.04.4 LTS
+	# =================================
+	# Date:      Sun 21 Feb 2021 09:22:53 AM UTC
+	# Distro:    Ubuntu 20.04.2 LTS
 	# Arch:      x86_64
-	# Kernel:    3.13.0-79-generic
-	# Hostname:  hostname
-	# tmux:      tmux 1.8
-	# glibc:     2.19
+	# Kernel:    5.4.0-65-generic
+	# Hostname:  server
+	# Uptime:    16d, 5h, 18m
+	# tmux:      tmux 3.0a
+	# glibc:     2.31
 
 	echo -e ""
 	echo -e "${lightyellow}Distro Details${default}"
 	fn_messages_separator
 	{
+		echo -e "${lightblue}Date:\t${default}${date}"
 		echo -e "${lightblue}Distro:\t${default}${distroname}"
 		echo -e "${lightblue}Arch:\t${default}${arch}"
 		echo -e "${lightblue}Kernel:\t${default}${kernel}"
@@ -62,23 +106,27 @@ fn_info_message_distro(){
 fn_info_message_server_resource(){
 	#
 	# Server Resource
-	# ==========================================================================================================================================================================================================================================
+	# =================================
 	# CPU
-	# Model:      Intel(R) Xeon(R) CPU E5-2680 v3 @ 2.50GHz
-	# Cores:      4
-	# Frequency:  2499.994 MHz
-	# Avg Load:   0.20, 0.08, 0.01
+	# Model:      AMD EPYC 7601 32-Core Processor
+	# Cores:      2
+	# Frequency:  2199.994MHz
+	# Avg Load:   0.01, 0.05, 0.18
 	#
 	# Memory
 	# Mem:       total  used   free   cached  available
-	# Physical:  7.8GB  598MB  7.0GB  4.0GB   7.0GB
-	# Swap:      512MB  0B     512MB
+	# Physical:  3.9GB  350MB  3.3GB  3.2GB   3.3GB
+	# Swap:      512MB  55MB   458MB
 	#
 	# Storage
-	# Filesystem:	/dev/sda
-	# Total:			157G
-	# Used:				138G
-	# Available:	12G
+	# Filesystem:  /dev/sda
+	# Total:       79G
+	# Used:        73G
+	# Available:   1.4G
+	#
+	# Network
+	# IP:           0.0.0.0
+	# Internet IP:  176.58.124.96
 
 	echo -e ""
 	echo -e "${lightyellow}Server Resource${default}"
@@ -122,21 +170,22 @@ fn_info_message_server_resource(){
 }
 
 fn_info_message_gameserver_resource(){
+	#
 	# Game Server Resource Usage
-	# ==========================================================================================================================================================================================================================================
-	# CPU Used:  2.5%
-	# Mem Used:  2.1%  171MB
+	# =================================
+	# CPU Used:  1.1%
+	# Mem Used:  4.8%  189MB
 	#
 	# Storage
-	# Total:        21G
-	# Serverfiles:  20G
-	# Backups:      20K
+	# Total:        241M
+	# Serverfiles:  240M
+	# Backups:      24K
 
 	echo -e ""
 	echo -e "${lightyellow}Game Server Resource Usage${default}"
 	fn_messages_separator
 	{
-		if [ "${status}" != "0" ]; then
+		if [ "${status}" != "0" ]&&[ -v status ]; then
 			if [ -n "${cpuused}" ]; then
 				echo -e "${lightblue}CPU Used:\t${default}${cpuused}%${default}"
 			else
@@ -164,10 +213,12 @@ fn_info_message_gameserver_resource(){
 }
 
 fn_info_message_gameserver(){
+	#
 	# Counter-Strike: Global Offensive Server Details
-	# ==========================================================================================================================================================================================================================================
+	# =================================
 	# Server name:      LinuxGSM
-	# Server IP:        80.70.189.230:27015
+	# Server IP:        0.0.0.0:27015
+	# Internet IP:      176.48.124.96:34197
 	# Server password:  NOT SET
 	# RCON password:    adminF54CC0VR
 	# Players:          0/16
@@ -177,7 +228,7 @@ fn_info_message_gameserver(){
 	# Game mode:        0
 	# Tick rate:        64
 	# Master Server:    listed
-	# Status:           ONLINE
+	# Status:           STARTED
 
 	echo -e ""
 	echo -e "${lightgreen}${gamename} Server Details${default}"
@@ -212,11 +263,7 @@ fn_info_message_gameserver(){
 		fi
 
 		# Server ip
-		if [ "${multiple_ip}" == "1" ]; then
-			echo -e "${lightblue}Server IP:\t${default}NOT SET"
-		else
-			echo -e "${lightblue}Server IP:\t${default}${ip}:${port}"
-		fi
+		echo -e "${lightblue}Server IP:\t${default}${ip}:${port}"
 
 		# Internet ip
 		if [ -n "${extip}" ]; then
@@ -415,23 +462,22 @@ fn_info_message_gameserver(){
 			fi
 		fi
 
-		# Online status
+		# Game server status
 		if [ "${status}" == "0" ]; then
-			echo -e "${lightblue}Status:\t${red}OFFLINE${default}"
+			echo -e "${lightblue}Status:\t${red}STOPPED${default}"
 		else
-			echo -e "${lightblue}Status:\t${green}ONLINE${default}"
+			echo -e "${lightblue}Status:\t${green}STARTED${default}"
 		fi
 	} | column -s $'\t' -t
 	echo -e ""
 }
 
 fn_info_message_script(){
-	#
 	# csgoserver Script Details
-	#==========================================================================================================================================================================================================================================
-	# Script name:           csgoserver
-	# LinuxGSM version:     v19.9.0
-	# glibc required:         2.15
+	# =================================
+	# Script name:            csgoserver
+	# LinuxGSM version:       v21.1.3
+	# glibc required:         2.18
 	# Discord alert:          off
 	# Email alert:            off
 	# IFTTT alert:            off
@@ -522,7 +568,7 @@ fn_info_message_script(){
 fn_info_message_backup(){
 	#
 	# Backups
-	# =====================================
+	# =================================
 	# No. of backups:    1
 	# Latest backup:
 	#     date:          Fri May  6 18:34:19 UTC 2016
@@ -554,7 +600,7 @@ fn_info_message_backup(){
 fn_info_message_commandlineparms(){
 	#
 	# Command-line Parameters
-	# =====================================
+	# =================================
 	# ./run_server_x86.sh +set net_strict 1
 
 	echo -e ""
@@ -564,41 +610,51 @@ fn_info_message_commandlineparms(){
 	if [ "${serverpassword}" == "NOT SET" ]; then
 		unset serverpassword
 	fi
-	fn_parms
-	echo -e "${preexecutable} ${executable} ${parms}"
+	if grep -qE "^[[:blank:]]*startparameters=" "${configdirserver}/secrets-${selfname}.cfg"; then
+		eval startparameters="$(sed -nr 's/^ *startparameters=(.*)$/\1/p' "${configdirserver}/secrets-${selfname}.cfg")"
+	elif grep -qE "^[[:blank:]]*startparameters=" "${configdirserver}/${selfname}.cfg"; then
+		eval startparameters="$(sed -nr 's/^ *startparameters=(.*)$/\1/p' "${configdirserver}/${selfname}.cfg")"
+	elif grep -qE "^[[:blank:]]*startparameters=" "${configdirserver}/secrets-common.cfg"; then
+		eval startparameters="$(sed -nr 's/^ *startparameters=(.*)$/\1/p' "${configdirserver}/secrets-common.cfg")"
+	elif grep -qE "^[[:blank:]]*startparameters=" "${configdirserver}/common.cfg"; then
+		eval startparameters="$(sed -nr 's/^ *startparameters=(.*)$/\1/p' "${configdirserver}/common.cfg")"
+	elif grep -qE "^[[:blank:]]*startparameters=" "${configdirserver}/_default.cfg"; then
+		eval startparameters="$(sed -nr 's/^ *startparameters=(.*)$/\1/p' "${configdirserver}/_default.cfg")"
+	fi
+	echo -e "${preexecutable} ${executable} ${startparameters}"
 }
 
 fn_info_message_ports(){
+	#
 	# Ports
-	# =====================================
+	# =================================
 	# Change ports by editing the parameters in:
 	# /home/lgsm/qlserver/serverfiles/baseq3/ql-server.cfg
-
 	echo -e ""
 	echo -e "${lightgreen}Ports${default}"
 	fn_messages_separator
 	echo -e "${lightblue}Change ports by editing the parameters in:${default}"
 
-	parmslocation="${red}UNKNOWN${default}"
+	startparameterslocation="${red}UNKNOWN${default}"
 	# engines/games that require editing in the config file.
 	local ports_edit_array=( "avalanche2.0" "avalanche3.0" "Ballistic Overkill" "Barotrauma" "dontstarve" "Eco" "idtech2" "idtech3" "idtech3_ql" "lwjgl2" "Minecraft Bedrock" "Project Cars" "projectzomboid" "quake" "refractor" "realvirtuality" "renderware" "Stationeers" "teeworlds" "terraria" "unreal" "unreal2" "unreal3" "TeamSpeak 3" "Mumble" "7 Days To Die" "Vintage Story" "wurm")
 	for port_edit in "${ports_edit_array[@]}"; do
 		if [ "${shortname}" == "ut3" ]; then
-			parmslocation="${servercfgdir}/UTWeb.ini"
+			startparameterslocation="${servercfgdir}/UTWeb.ini"
 		elif [ "${shortname}" == "kf2" ]; then
-			parmslocation="${servercfgdir}/LinuxServer-KFEngine.ini\n${servercfgdir}/KFWeb.ini"
+			startparameterslocation="${servercfgdir}/LinuxServer-KFEngine.ini\n${servercfgdir}/KFWeb.ini"
 		elif [ "${engine}" == "${port_edit}" ]||[ "${gamename}" == "${port_edit}" ]; then
-			parmslocation="${servercfgfullpath}"
+			startparameterslocation="${servercfgfullpath}"
 		fi
 	done
 	# engines/games that require editing the start parameters.
 	local ports_edit_array=( "Avorion" "col" "goldsrc" "Factorio" "Hurtworld" "iw3.0" "ioquake3" "qfusion" "Rust" "scpsl" "scpslsm" "Soldat" "spark" "source" "starbound" "unreal4" "realvirtuality" "Unturned" "vh" )
 	for port_edit in "${ports_edit_array[@]}"; do
 		if [ "${engine}" == "${port_edit}" ]||[ "${gamename}" == "${port_edit}" ]||[ "${shortname}" == "${port_edit}" ]; then
-			parmslocation="${configdirserver}"
+			startparameterslocation="${configdirserver}"
 		fi
 	done
-	echo -e "${parmslocation}"
+	echo -e "${startparameterslocation}"
 	echo -e ""
 	echo -e "${lightblue}Useful port diagnostic command:${default}"
 }
@@ -606,9 +662,9 @@ fn_info_message_ports(){
 fn_info_message_statusbottom(){
 	echo -e ""
 	if [ "${status}" == "0" ]; then
-		echo -e "${lightblue}Status:\t${red}OFFLINE${default}"
+		echo -e "${lightblue}Status:\t${red}STOPPED${default}"
 	else
-		echo -e "${lightblue}Status:\t${green}ONLINE${default}"
+		echo -e "${lightblue}Status:\t${green}STARTED${default}"
 	fi
 	echo -e ""
 }
@@ -1406,7 +1462,7 @@ fn_info_message_mta(){
 	echo -e ""
 	{
 		echo -e "${lightblue}DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL${default}"
-		echo -e "> Game/Query\tOUTBOUND\t${port}\tudp"
+		echo -e "> Game/Query\tINBOUND\t${port}\tudp"
 		echo -e "> HTTP Server\tINBOUND\t${httpport}\ttcp"
 		if [ "${ase}" == "Enabled" ]; then
 			echo -e "> Query Port\tOUTBOUND\t${queryport}\tudp"
@@ -1642,50 +1698,3 @@ fn_info_message_select_engine(){
 		fn_print_error_nl "Unable to detect server engine."
 	fi
 }
-
-# Separator is different for details
-fn_messages_separator(){
-	if [ "${commandname}" == "details" ]; then
-		printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' =
-	else
-		echo -e "================================="
-	fi
-}
-
-# Removes the passwords form all but details
-fn_info_message_password_strip(){
-	if [ "${commandname}" != "DETAILS" ]; then
-		if [ "${serverpassword}" ]; then
-			serverpassword="********"
-		fi
-
-		if [ "${rconpassword}" ]; then
-			rconpassword="********"
-		fi
-
-		if [ "${adminpassword}" ]; then
-			adminpassword="********"
-		fi
-
-		if [ "${statspassword}" ]; then
-			statspassword="********"
-		fi
-
-		if [ "${webadminpass}" ]; then
-			webadminpass="********"
-		fi
-
-		if [ "${telnetpass}" ]; then
-			telnetpass="********"
-		fi
-
-		if [ "${wsapikey}" ]; then
-			wsapikey="********"
-		fi
-
-		if [ "${gslt}" ]; then
-			gslt="********"
-		fi
-
-	fi
-}
diff --git a/tests/tests_fctrserver.sh b/tests/tests_fctrserver.sh
index a2099236b..b72e2b025 100644
--- a/tests/tests_fctrserver.sh
+++ b/tests/tests_fctrserver.sh
@@ -466,9 +466,9 @@ fi
 fn_currentstatus_tmux(){
 	check_status.sh
 	if [ "${status}" != "0" ]; then
-		currentstatus="ONLINE"
+		currentstatus="STARTED"
 	else
-		currentstatus="OFFLINE"
+		currentstatus="STOPPED"
 	fi
 }
 
@@ -483,7 +483,7 @@ fn_setstatus(){
 		fn_currentstatus_tmux
 		echo -en "New status:  ${currentstatus}\\r"
 
-		if [ "${requiredstatus}" == "ONLINE" ]; then
+		if [ "${requiredstatus}" == "STARTED" ]; then
 			(command_start.sh > /dev/null 2>&1)
 		else
 			(command_stop.sh > /dev/null 2>&1)
@@ -749,7 +749,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "start ${gamename} server."
 echo -e "Command: ./${gameservername} start"
-requiredstatus="OFFLINE"
+requiredstatus="STOPPED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -768,7 +768,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "start ${gamename} server while already running."
 echo -e "Command: ./${gameservername} start"
-requiredstatus="ONLINE"
+requiredstatus="STARTED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -787,7 +787,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "will update server on start."
 echo -e "Command: ./${gameservername} start"
-requiredstatus="OFFLINE"
+requiredstatus="STOPPED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -806,7 +806,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "stop ${gamename} server."
 echo -e "Command: ./${gameservername} stop"
-requiredstatus="ONLINE"
+requiredstatus="STARTED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -825,7 +825,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "stop ${gamename} server while already stopped."
 echo -e "Command: ./${gameservername} stop"
-requiredstatus="OFFLINE"
+requiredstatus="STOPPED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -844,7 +844,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "restart ${gamename}."
 echo -e "Command: ./${gameservername} restart"
-requiredstatus="ONLINE"
+requiredstatus="STARTED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -863,7 +863,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "restart ${gamename} while already stopped."
 echo -e "Command: ./${gameservername} restart"
-requiredstatus="OFFLINE"
+requiredstatus="STOPPED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -886,7 +886,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "check for updates."
 echo -e "Command: ./${gameservername} update"
-requiredstatus="OFFLINE"
+requiredstatus="STOPPED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -906,7 +906,7 @@ echo -e "Description:"
 echo -e "update LinuxGSM."
 echo -e ""
 echo -e "Command: ./jc2server update-lgam"
-requiredstatus="ONLINE"
+requiredstatus="STARTED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -933,7 +933,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "run monitor server while already running."
 echo -e "Command: ./${gameservername} monitor"
-requiredstatus="ONLINE"
+requiredstatus="STARTED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -952,7 +952,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "run monitor while server is offline with lockfile."
 echo -e "Command: ./${gameservername} monitor"
-requiredstatus="OFFLINE"
+requiredstatus="STOPPED"
 fn_setstatus
 fn_print_info_nl "creating lockfile."
 date '+%s' > "${lockdir}/${selfname}.lock"
@@ -975,7 +975,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "run monitor while server is offline with no lockfile."
 echo -e "Command: ./${gameservername} monitor"
-requiredstatus="OFFLINE"
+requiredstatus="STOPPED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -994,7 +994,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "run monitor while server is offline with no lockfile."
 echo -e "Command: ./${gameservername} test-alert"
-requiredstatus="OFFLINE"
+requiredstatus="STOPPED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -1017,7 +1017,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "display details."
 echo -e "Command: ./${gameservername} details"
-requiredstatus="ONLINE"
+requiredstatus="STARTED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -1036,7 +1036,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "post details."
 echo -e "Command: ./${gameservername} postdetails"
-requiredstatus="ONLINE"
+requiredstatus="STARTED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -1059,7 +1059,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "run a backup."
 echo -e "Command: ./${gameservername} backup"
-requiredstatus="ONLINE"
+requiredstatus="STARTED"
 fn_setstatus
 echo -e "test de-activated until issue #1839 fixed"
 #(command_backup.sh)
@@ -1078,7 +1078,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "detect glibc."
 echo -e "Command: ./${gameservername} detect-glibc"
-requiredstatus="ONLINE"
+requiredstatus="STARTED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -1097,7 +1097,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "detect ldd."
 echo -e "Command: ./${gameservername} detect-ldd"
-requiredstatus="ONLINE"
+requiredstatus="STARTED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -1116,7 +1116,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "detect dependencies."
 echo -e "Command: ./${gameservername} detect-deps"
-requiredstatus="ONLINE"
+requiredstatus="STARTED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -1135,7 +1135,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "raw query output."
 echo -e "Command: ./${gameservername} query-raw"
-requiredstatus="ONLINE"
+requiredstatus="STARTED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -1159,7 +1159,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "donate."
 echo -e "Command: ./${gameservername} donate"
-requiredstatus="ONLINE"
+requiredstatus="STARTED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -1177,7 +1177,7 @@ echo -e "================================="
 echo -e "Server Tests - Complete!"
 echo -e "Using: ${gamename}"
 echo -e "================================="
-requiredstatus="OFFLINE"
+requiredstatus="STOPPED"
 fn_setstatus
 
 core_exit.sh
diff --git a/tests/tests_jc2server.sh b/tests/tests_jc2server.sh
index f151dda65..3b1b081a7 100644
--- a/tests/tests_jc2server.sh
+++ b/tests/tests_jc2server.sh
@@ -467,9 +467,9 @@ fi
 fn_currentstatus_tmux(){
 	check_status.sh
 	if [ "${status}" != "0" ]; then
-		currentstatus="ONLINE"
+		currentstatus="STARTED"
 	else
-		currentstatus="OFFLINE"
+		currentstatus="STOPPED"
 	fi
 }
 
@@ -484,7 +484,7 @@ fn_setstatus(){
 		fn_currentstatus_tmux
 		echo -en "New status:  ${currentstatus}\\r"
 
-		if [ "${requiredstatus}" == "ONLINE" ]; then
+		if [ "${requiredstatus}" == "STARTED" ]; then
 			(command_start.sh > /dev/null 2>&1)
 		else
 			(command_stop.sh > /dev/null 2>&1)
@@ -754,7 +754,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "start ${gamename} server."
 echo -e "Command: ./${gameservername} start"
-requiredstatus="OFFLINE"
+requiredstatus="STOPPED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -773,7 +773,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "start ${gamename} server while already running."
 echo -e "Command: ./${gameservername} start"
-requiredstatus="ONLINE"
+requiredstatus="STARTED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -792,7 +792,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "will update server on start."
 echo -e "Command: ./${gameservername} start"
-requiredstatus="OFFLINE"
+requiredstatus="STOPPED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -811,7 +811,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "stop ${gamename} server."
 echo -e "Command: ./${gameservername} stop"
-requiredstatus="ONLINE"
+requiredstatus="STARTED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -830,7 +830,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "stop ${gamename} server while already stopped."
 echo -e "Command: ./${gameservername} stop"
-requiredstatus="OFFLINE"
+requiredstatus="STOPPED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -849,7 +849,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "restart ${gamename}."
 echo -e "Command: ./${gameservername} restart"
-requiredstatus="ONLINE"
+requiredstatus="STARTED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -868,7 +868,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "restart ${gamename} while already stopped."
 echo -e "Command: ./${gameservername} restart"
-requiredstatus="OFFLINE"
+requiredstatus="STOPPED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -891,7 +891,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "check for updates."
 echo -e "Command: ./${gameservername} update"
-requiredstatus="OFFLINE"
+requiredstatus="STOPPED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -910,7 +910,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "change the buildid tricking SteamCMD to update."
 echo -e "Command: ./jc2server update"
-requiredstatus="OFFLINE"
+requiredstatus="STOPPED"
 fn_setstatus
 fn_print_info_nl "changed buildid to 0."
 sed -i 's/[0-9]\+/0/' "${serverfiles}/steamapps/appmanifest_${appid}.acf"
@@ -931,7 +931,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "change the buildid tricking SteamCMD to update server while already running."
 echo -e "Command: ./jc2server update"
-requiredstatus="ONLINE"
+requiredstatus="STARTED"
 fn_setstatus
 fn_print_info_nl "changed buildid to 0."
 sed -i 's/[0-9]\+/0/' "${serverfiles}/steamapps/appmanifest_${appid}.acf"
@@ -952,7 +952,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "removing appmanifest file will cause script to repair."
 echo -e "Command: ./jc2server update"
-requiredstatus="OFFLINE"
+requiredstatus="STOPPED"
 fn_setstatus
 fn_print_info_nl "removed appmanifest_${appid}.acf."
 rm --verbose "${serverfiles:?}/steamapps/appmanifest_${appid}.acf"
@@ -973,7 +973,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "force-update bypassing update check."
 echo -e "Command: ./jc2server force-update"
-requiredstatus="OFFLINE"
+requiredstatus="STOPPED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -992,7 +992,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "force-update bypassing update check server while already running."
 echo -e "Command: ./jc2server force-update"
-requiredstatus="ONLINE"
+requiredstatus="STARTED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -1011,7 +1011,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "validate server files."
 echo -e "Command: ./jc2server validate"
-requiredstatus="OFFLINE"
+requiredstatus="STOPPED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -1031,7 +1031,7 @@ echo -e "Description:"
 echo -e "validate server files while server already running."
 echo -e ""
 echo -e "Command: ./jc2server validate"
-requiredstatus="ONLINE"
+requiredstatus="STARTED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -1051,7 +1051,7 @@ echo -e "Description:"
 echo -e "update LinuxGSM."
 echo -e ""
 echo -e "Command: ./jc2server update-lgam"
-requiredstatus="ONLINE"
+requiredstatus="STARTED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -1092,7 +1092,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "run monitor server while already running."
 echo -e "Command: ./${gameservername} monitor"
-requiredstatus="ONLINE"
+requiredstatus="STARTED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -1111,7 +1111,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "run monitor while server is offline with lockfile."
 echo -e "Command: ./${gameservername} monitor"
-requiredstatus="OFFLINE"
+requiredstatus="STOPPED"
 fn_setstatus
 fn_print_info_nl "creating lockfile."
 date '+%s' > "${lockdir}/${selfname}.lock"
@@ -1134,7 +1134,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "run monitor while server is offline with no lockfile."
 echo -e "Command: ./${gameservername} monitor"
-requiredstatus="OFFLINE"
+requiredstatus="STOPPED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -1153,7 +1153,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "run monitor while server is offline with no lockfile."
 echo -e "Command: ./${gameservername} test-alert"
-requiredstatus="OFFLINE"
+requiredstatus="STOPPED"
 fn_setstatus
 cp "${servercfgfullpath}" "config.lua"
 sed -i 's/[0-9]\+/0/' "${servercfgfullpath}"
@@ -1183,7 +1183,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "display details."
 echo -e "Command: ./${gameservername} details"
-requiredstatus="ONLINE"
+requiredstatus="STARTED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -1202,7 +1202,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "post details."
 echo -e "Command: ./${gameservername} postdetails"
-requiredstatus="ONLINE"
+requiredstatus="STARTED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -1225,7 +1225,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "run a backup."
 echo -e "Command: ./${gameservername} backup"
-requiredstatus="ONLINE"
+requiredstatus="STARTED"
 fn_setstatus
 echo -e "test de-activated until issue #1839 fixed"
 #(command_backup.sh)
@@ -1244,7 +1244,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "detect glibc."
 echo -e "Command: ./${gameservername} detect-glibc"
-requiredstatus="ONLINE"
+requiredstatus="STARTED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -1263,7 +1263,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "detect ldd."
 echo -e "Command: ./${gameservername} detect-ldd"
-requiredstatus="ONLINE"
+requiredstatus="STARTED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -1282,7 +1282,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "detect dependencies."
 echo -e "Command: ./${gameservername} detect-deps"
-requiredstatus="ONLINE"
+requiredstatus="STARTED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -1301,7 +1301,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "raw query output."
 echo -e "Command: ./${gameservername} query-raw"
-requiredstatus="ONLINE"
+requiredstatus="STARTED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -1324,7 +1324,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "donate."
 echo -e "Command: ./${gameservername} donate"
-requiredstatus="ONLINE"
+requiredstatus="STARTED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -1342,6 +1342,6 @@ echo -e "================================="
 echo -e "Server Tests - Complete!"
 echo -e "Using: ${gamename}"
 echo -e "================================="
-requiredstatus="OFFLINE"
+requiredstatus="STOPPED"
 fn_setstatus
 core_exit.sh
diff --git a/tests/tests_mcserver.sh b/tests/tests_mcserver.sh
index 43b72c844..00fd32d17 100644
--- a/tests/tests_mcserver.sh
+++ b/tests/tests_mcserver.sh
@@ -467,9 +467,9 @@ fi
 fn_currentstatus_tmux(){
 	check_status.sh
 	if [ "${status}" != "0" ]; then
-		currentstatus="ONLINE"
+		currentstatus="STARTED"
 	else
-		currentstatus="OFFLINE"
+		currentstatus="STOPPED"
 	fi
 }
 
@@ -484,7 +484,7 @@ fn_setstatus(){
 		fn_currentstatus_tmux
 		echo -en "New status:  ${currentstatus}\\r"
 
-		if [ "${requiredstatus}" == "ONLINE" ]; then
+		if [ "${requiredstatus}" == "STARTED" ]; then
 			(command_start.sh > /dev/null 2>&1)
 		else
 			(command_stop.sh > /dev/null 2>&1)
@@ -748,7 +748,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "start ${gamename} server."
 echo -e "Command: ./${gameservername} start"
-requiredstatus="OFFLINE"
+requiredstatus="STOPPED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -767,7 +767,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "start ${gamename} server while already running."
 echo -e "Command: ./${gameservername} start"
-requiredstatus="ONLINE"
+requiredstatus="STARTED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -786,7 +786,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "will update server on start."
 echo -e "Command: ./${gameservername} start"
-requiredstatus="OFFLINE"
+requiredstatus="STOPPED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -804,7 +804,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "give time for server to fully start."
 echo -e "Command: sleep 30"
-requiredstatus="ONLINE"
+requiredstatus="STARTED"
 fn_setstatus
 sleep 30
 
@@ -814,7 +814,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "stop ${gamename} server."
 echo -e "Command: ./${gameservername} stop"
-requiredstatus="ONLINE"
+requiredstatus="STARTED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -833,7 +833,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "stop ${gamename} server while already stopped."
 echo -e "Command: ./${gameservername} stop"
-requiredstatus="OFFLINE"
+requiredstatus="STOPPED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -852,7 +852,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "restart ${gamename}."
 echo -e "Command: ./${gameservername} restart"
-requiredstatus="ONLINE"
+requiredstatus="STARTED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -871,7 +871,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "restart ${gamename} while already stopped."
 echo -e "Command: ./${gameservername} restart"
-requiredstatus="OFFLINE"
+requiredstatus="STOPPED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -894,7 +894,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "check for updates."
 echo -e "Command: ./${gameservername} update"
-requiredstatus="OFFLINE"
+requiredstatus="STOPPED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -914,7 +914,7 @@ echo -e "Description:"
 echo -e "update LinuxGSM."
 echo -e ""
 echo -e "Command: ./jc2server update-lgam"
-requiredstatus="ONLINE"
+requiredstatus="STARTED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -955,7 +955,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "give time for server to fully start."
 echo -e "Command: sleep 30"
-requiredstatus="ONLINE"
+requiredstatus="STARTED"
 fn_setstatus
 sleep 30
 
@@ -965,7 +965,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "run monitor server while already running."
 echo -e "Command: ./${gameservername} monitor"
-requiredstatus="ONLINE"
+requiredstatus="STARTED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -984,7 +984,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "run monitor while server is offline with lockfile."
 echo -e "Command: ./${gameservername} monitor"
-requiredstatus="OFFLINE"
+requiredstatus="STOPPED"
 fn_setstatus
 fn_print_info_nl "creating lockfile."
 date '+%s' > "${lockdir}/${selfname}.lock"
@@ -1007,7 +1007,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "run monitor while server is offline with no lockfile."
 echo -e "Command: ./${gameservername} monitor"
-requiredstatus="OFFLINE"
+requiredstatus="STOPPED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -1026,7 +1026,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "run monitor while server is offline with no lockfile."
 echo -e "Command: ./${gameservername} test-alert"
-requiredstatus="OFFLINE"
+requiredstatus="STOPPED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -1049,7 +1049,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "display details."
 echo -e "Command: ./${gameservername} details"
-requiredstatus="ONLINE"
+requiredstatus="STARTED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -1068,7 +1068,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "post details."
 echo -e "Command: ./${gameservername} postdetails"
-requiredstatus="ONLINE"
+requiredstatus="STARTED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -1091,7 +1091,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "run a backup."
 echo -e "Command: ./${gameservername} backup"
-requiredstatus="ONLINE"
+requiredstatus="STARTED"
 fn_setstatus
 echo -e "test de-activated until issue #1839 fixed"
 #(command_backup.sh)
@@ -1110,7 +1110,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "detect glibc."
 echo -e "Command: ./${gameservername} detect-glibc"
-requiredstatus="ONLINE"
+requiredstatus="STARTED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -1129,7 +1129,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "detect ldd."
 echo -e "Command: ./${gameservername} detect-ldd"
-requiredstatus="ONLINE"
+requiredstatus="STARTED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -1148,7 +1148,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "detect dependencies."
 echo -e "Command: ./${gameservername} detect-deps"
-requiredstatus="ONLINE"
+requiredstatus="STARTED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -1181,7 +1181,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "raw query output."
 echo -e "Command: ./${gameservername} query-raw"
-requiredstatus="ONLINE"
+requiredstatus="STARTED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -1204,7 +1204,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "donate."
 echo -e "Command: ./${gameservername} donate"
-requiredstatus="ONLINE"
+requiredstatus="STARTED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -1222,7 +1222,7 @@ echo -e "================================="
 echo -e "Server Tests - Complete!"
 echo -e "Using: ${gamename}"
 echo -e "================================="
-requiredstatus="OFFLINE"
+requiredstatus="STOPPED"
 fn_setstatus
 
 core_exit.sh
diff --git a/tests/tests_ts3server.sh b/tests/tests_ts3server.sh
index e6f29d23d..0fcee304a 100644
--- a/tests/tests_ts3server.sh
+++ b/tests/tests_ts3server.sh
@@ -467,9 +467,9 @@ fi
 fn_currentstatus_tmux(){
 	check_status.sh
 	if [ "${status}" != "0" ]; then
-		currentstatus="ONLINE"
+		currentstatus="STARTED"
 	else
-		currentstatus="OFFLINE"
+		currentstatus="STOPPED"
 	fi
 }
 
@@ -484,7 +484,7 @@ fn_setstatus(){
 		fn_currentstatus_tmux
 		echo -en "New status:  ${currentstatus}\\r"
 
-		if [ "${requiredstatus}" == "ONLINE" ]; then
+		if [ "${requiredstatus}" == "STARTED" ]; then
 			(command_start.sh > /dev/null 2>&1)
 		else
 			(command_stop.sh > /dev/null 2>&1)
@@ -748,7 +748,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "start ${gamename} server."
 echo -e "Command: ./${gameservername} start"
-requiredstatus="OFFLINE"
+requiredstatus="STOPPED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -767,7 +767,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "start ${gamename} server while already running."
 echo -e "Command: ./${gameservername} start"
-requiredstatus="ONLINE"
+requiredstatus="STARTED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -786,7 +786,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "will update server on start."
 echo -e "Command: ./${gameservername} start"
-requiredstatus="OFFLINE"
+requiredstatus="STOPPED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -805,7 +805,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "stop ${gamename} server."
 echo -e "Command: ./${gameservername} stop"
-requiredstatus="ONLINE"
+requiredstatus="STARTED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -824,7 +824,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "stop ${gamename} server while already stopped."
 echo -e "Command: ./${gameservername} stop"
-requiredstatus="OFFLINE"
+requiredstatus="STOPPED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -843,7 +843,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "restart ${gamename}."
 echo -e "Command: ./${gameservername} restart"
-requiredstatus="ONLINE"
+requiredstatus="STARTED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -862,7 +862,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "restart ${gamename} while already stopped."
 echo -e "Command: ./${gameservername} restart"
-requiredstatus="OFFLINE"
+requiredstatus="STOPPED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -885,7 +885,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "check for updates."
 echo -e "Command: ./${gameservername} update"
-requiredstatus="OFFLINE"
+requiredstatus="STOPPED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -905,7 +905,7 @@ echo -e "Description:"
 echo -e "update LinuxGSM."
 echo -e ""
 echo -e "Command: ./jc2server update-lgam"
-requiredstatus="ONLINE"
+requiredstatus="STARTED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -932,7 +932,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "run monitor server while already running."
 echo -e "Command: ./${gameservername} monitor"
-requiredstatus="ONLINE"
+requiredstatus="STARTED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -951,7 +951,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "run monitor while server is offline with lockfile."
 echo -e "Command: ./${gameservername} monitor"
-requiredstatus="OFFLINE"
+requiredstatus="STOPPED"
 fn_setstatus
 fn_print_info_nl "creating lockfile."
 date '+%s' > "${lockdir}/${selfname}.lock"
@@ -974,7 +974,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "run monitor while server is offline with no lockfile."
 echo -e "Command: ./${gameservername} monitor"
-requiredstatus="OFFLINE"
+requiredstatus="STOPPED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -993,7 +993,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "run monitor while server is offline with no lockfile."
 echo -e "Command: ./${gameservername} test-alert"
-requiredstatus="OFFLINE"
+requiredstatus="STOPPED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -1016,7 +1016,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "display details."
 echo -e "Command: ./${gameservername} details"
-requiredstatus="ONLINE"
+requiredstatus="STARTED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -1035,7 +1035,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "post details."
 echo -e "Command: ./${gameservername} postdetails"
-requiredstatus="ONLINE"
+requiredstatus="STARTED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -1058,7 +1058,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "run a backup."
 echo -e "Command: ./${gameservername} backup"
-requiredstatus="ONLINE"
+requiredstatus="STARTED"
 fn_setstatus
 echo -e "test de-activated until issue #1839 fixed"
 #(command_backup.sh)
@@ -1077,7 +1077,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "detect glibc."
 echo -e "Command: ./${gameservername} detect-glibc"
-requiredstatus="ONLINE"
+requiredstatus="STARTED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -1096,7 +1096,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "detect ldd."
 echo -e "Command: ./${gameservername} detect-ldd"
-requiredstatus="ONLINE"
+requiredstatus="STARTED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -1115,7 +1115,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "detect dependencies."
 echo -e "Command: ./${gameservername} detect-deps"
-requiredstatus="ONLINE"
+requiredstatus="STARTED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -1134,7 +1134,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "raw query output."
 echo -e "Command: ./${gameservername} query-raw"
-requiredstatus="ONLINE"
+requiredstatus="STARTED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -1157,7 +1157,7 @@ echo -e "================================="
 echo -e "Description:"
 echo -e "donate."
 echo -e "Command: ./${gameservername} donate"
-requiredstatus="ONLINE"
+requiredstatus="STARTED"
 fn_setstatus
 (
 	exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
@@ -1175,7 +1175,7 @@ echo -e "================================="
 echo -e "Server Tests - Complete!"
 echo -e "Using: ${gamename}"
 echo -e "================================="
-requiredstatus="OFFLINE"
+requiredstatus="STOPPED"
 fn_setstatus
 
 core_exit.sh