|
@ -6,6 +6,8 @@ lgsm_version="271215" |
|
|
|
|
|
|
|
|
# Description: Displays server infomation. |
|
|
# Description: Displays server infomation. |
|
|
|
|
|
|
|
|
|
|
|
function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))" |
|
|
|
|
|
|
|
|
# Standard Details |
|
|
# Standard Details |
|
|
# This applies to all engines |
|
|
# This applies to all engines |
|
|
|
|
|
|
|
@ -226,14 +228,6 @@ echo -e "" |
|
|
# Engine Specific details |
|
|
# Engine Specific details |
|
|
|
|
|
|
|
|
fn_details_avalanche(){ |
|
|
fn_details_avalanche(){ |
|
|
check_ip.sh |
|
|
|
|
|
info_config.sh |
|
|
|
|
|
info_distro.sh |
|
|
|
|
|
fn_details_os |
|
|
|
|
|
fn_details_performance |
|
|
|
|
|
fn_details_disk |
|
|
|
|
|
fn_details_gameserver |
|
|
|
|
|
fn_details_backup |
|
|
|
|
|
echo -e "" |
|
|
echo -e "" |
|
|
echo -e "\e[92mPorts\e[0m" |
|
|
echo -e "\e[92mPorts\e[0m" |
|
|
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' = |
|
|
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' = |
|
@ -252,14 +246,6 @@ fn_details_statusbottom |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
fn_details_dontstarve(){ |
|
|
fn_details_dontstarve(){ |
|
|
check_ip.sh |
|
|
|
|
|
info_config.sh |
|
|
|
|
|
info_distro.sh |
|
|
|
|
|
fn_details_os |
|
|
|
|
|
fn_details_performance |
|
|
|
|
|
fn_details_disk |
|
|
|
|
|
fn_details_gameserver |
|
|
|
|
|
fn_details_backup |
|
|
|
|
|
echo -e "" |
|
|
echo -e "" |
|
|
echo -e "\e[92mPorts\e[0m" |
|
|
echo -e "\e[92mPorts\e[0m" |
|
|
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' = |
|
|
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' = |
|
@ -278,14 +264,6 @@ fn_details_statusbottom |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
fn_details_projectzomboid(){ |
|
|
fn_details_projectzomboid(){ |
|
|
check_ip.sh |
|
|
|
|
|
info_config.sh |
|
|
|
|
|
info_distro.sh |
|
|
|
|
|
fn_details_os |
|
|
|
|
|
fn_details_performance |
|
|
|
|
|
fn_details_disk |
|
|
|
|
|
fn_details_gameserver |
|
|
|
|
|
fn_details_backup |
|
|
|
|
|
echo -e "" |
|
|
echo -e "" |
|
|
echo -e "\e[92mPorts\e[0m" |
|
|
echo -e "\e[92mPorts\e[0m" |
|
|
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' = |
|
|
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' = |
|
@ -305,16 +283,6 @@ fn_details_statusbottom |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fn_details_realvirtuality(){ |
|
|
fn_details_realvirtuality(){ |
|
|
check_ip.sh |
|
|
|
|
|
fn_parms |
|
|
|
|
|
info_config.sh |
|
|
|
|
|
info_distro.sh |
|
|
|
|
|
fn_details_os |
|
|
|
|
|
fn_details_performance |
|
|
|
|
|
fn_details_disk |
|
|
|
|
|
fn_details_gameserver |
|
|
|
|
|
fn_details_backup |
|
|
|
|
|
fn_details_commandlineparms |
|
|
|
|
|
echo -e "" |
|
|
echo -e "" |
|
|
echo -e "\e[92mPorts\e[0m" |
|
|
echo -e "\e[92mPorts\e[0m" |
|
|
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' = |
|
|
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' = |
|
@ -339,16 +307,6 @@ fn_details_statusbottom |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
fn_details_seriousengine35(){ |
|
|
fn_details_seriousengine35(){ |
|
|
check_ip.sh |
|
|
|
|
|
fn_parms |
|
|
|
|
|
info_config.sh |
|
|
|
|
|
info_distro.sh |
|
|
|
|
|
fn_details_os |
|
|
|
|
|
fn_details_performance |
|
|
|
|
|
fn_details_disk |
|
|
|
|
|
fn_details_gameserver |
|
|
|
|
|
fn_details_backup |
|
|
|
|
|
fn_details_commandlineparms |
|
|
|
|
|
echo -e "" |
|
|
echo -e "" |
|
|
echo -e "\e[92mPorts\e[0m" |
|
|
echo -e "\e[92mPorts\e[0m" |
|
|
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' = |
|
|
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' = |
|
@ -368,16 +326,6 @@ fn_details_statusbottom |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
fn_details_source(){ |
|
|
fn_details_source(){ |
|
|
check_ip.sh |
|
|
|
|
|
fn_parms |
|
|
|
|
|
info_config.sh |
|
|
|
|
|
info_distro.sh |
|
|
|
|
|
fn_details_os |
|
|
|
|
|
fn_details_performance |
|
|
|
|
|
fn_details_disk |
|
|
|
|
|
fn_details_gameserver |
|
|
|
|
|
fn_details_backup |
|
|
|
|
|
fn_details_commandlineparms |
|
|
|
|
|
echo -e "" |
|
|
echo -e "" |
|
|
echo -e "\e[92mPorts\e[0m" |
|
|
echo -e "\e[92mPorts\e[0m" |
|
|
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' = |
|
|
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' = |
|
@ -400,16 +348,6 @@ fn_details_statusbottom |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
fn_details_spark(){ |
|
|
fn_details_spark(){ |
|
|
check_ip.sh |
|
|
|
|
|
fn_parms |
|
|
|
|
|
info_config.sh |
|
|
|
|
|
info_distro.sh |
|
|
|
|
|
fn_details_os |
|
|
|
|
|
fn_details_performance |
|
|
|
|
|
fn_details_disk |
|
|
|
|
|
fn_details_gameserver |
|
|
|
|
|
fn_details_backup |
|
|
|
|
|
fn_details_commandlineparms |
|
|
|
|
|
echo -e "" |
|
|
echo -e "" |
|
|
echo -e "\e[92mPorts\e[0m" |
|
|
echo -e "\e[92mPorts\e[0m" |
|
|
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' = |
|
|
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' = |
|
@ -438,16 +376,6 @@ fn_details_statusbottom |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
fn_details_starbound(){ |
|
|
fn_details_starbound(){ |
|
|
check_ip.sh |
|
|
|
|
|
fn_parms |
|
|
|
|
|
info_config.sh |
|
|
|
|
|
info_distro.sh |
|
|
|
|
|
fn_details_os |
|
|
|
|
|
fn_details_performance |
|
|
|
|
|
fn_details_disk |
|
|
|
|
|
fn_details_gameserver |
|
|
|
|
|
fn_details_backup |
|
|
|
|
|
fn_details_commandlineparms |
|
|
|
|
|
echo -e "" |
|
|
echo -e "" |
|
|
echo -e "\e[92mPorts\e[0m" |
|
|
echo -e "\e[92mPorts\e[0m" |
|
|
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' = |
|
|
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' = |
|
@ -469,14 +397,6 @@ fn_details_statusbottom |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
fn_details_teamspeak3(){ |
|
|
fn_details_teamspeak3(){ |
|
|
info_config.sh |
|
|
|
|
|
info_distro.sh |
|
|
|
|
|
fn_details_os |
|
|
|
|
|
fn_details_performance |
|
|
|
|
|
fn_details_disk |
|
|
|
|
|
fn_details_gameserver |
|
|
|
|
|
fn_details_backup |
|
|
|
|
|
fn_details_commandlineparms |
|
|
|
|
|
echo -e "" |
|
|
echo -e "" |
|
|
echo -e "\e[92mPorts\e[0m" |
|
|
echo -e "\e[92mPorts\e[0m" |
|
|
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' = |
|
|
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' = |
|
@ -497,16 +417,6 @@ fn_details_statusbottom |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
fn_details_teeworlds(){ |
|
|
fn_details_teeworlds(){ |
|
|
check_ip.sh |
|
|
|
|
|
fn_parms |
|
|
|
|
|
info_config.sh |
|
|
|
|
|
info_distro.sh |
|
|
|
|
|
fn_details_os |
|
|
|
|
|
fn_details_performance |
|
|
|
|
|
fn_details_disk |
|
|
|
|
|
fn_details_gameserver |
|
|
|
|
|
fn_details_backup |
|
|
|
|
|
fn_details_commandlineparms |
|
|
|
|
|
echo -e "" |
|
|
echo -e "" |
|
|
echo -e "\e[92mPorts\e[0m" |
|
|
echo -e "\e[92mPorts\e[0m" |
|
|
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' = |
|
|
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' = |
|
@ -525,16 +435,6 @@ fn_details_statusbottom |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
fn_details_terraria(){ |
|
|
fn_details_terraria(){ |
|
|
check_ip.sh |
|
|
|
|
|
fn_parms |
|
|
|
|
|
info_config.sh |
|
|
|
|
|
info_distro.sh |
|
|
|
|
|
fn_details_os |
|
|
|
|
|
fn_details_performance |
|
|
|
|
|
fn_details_disk |
|
|
|
|
|
fn_details_gameserver |
|
|
|
|
|
fn_details_backup |
|
|
|
|
|
fn_details_commandlineparms |
|
|
|
|
|
echo -e "" |
|
|
echo -e "" |
|
|
echo -e "\e[92mPorts\e[0m" |
|
|
echo -e "\e[92mPorts\e[0m" |
|
|
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' = |
|
|
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' = |
|
@ -555,16 +455,6 @@ fn_details_statusbottom |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
fn_details_sdtd(){ |
|
|
fn_details_sdtd(){ |
|
|
fn_check_ip.sh |
|
|
|
|
|
fn_parms |
|
|
|
|
|
info_config.sh |
|
|
|
|
|
info_distro.sh |
|
|
|
|
|
fn_details_os |
|
|
|
|
|
fn_details_performance |
|
|
|
|
|
fn_details_disk |
|
|
|
|
|
fn_details_gameserver |
|
|
|
|
|
fn_details_backup |
|
|
|
|
|
fn_details_commandlineparms |
|
|
|
|
|
echo -e "" |
|
|
echo -e "" |
|
|
echo -e "\e[92mPorts\e[0m" |
|
|
echo -e "\e[92mPorts\e[0m" |
|
|
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' = |
|
|
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' = |
|
@ -602,16 +492,6 @@ fn_details_statusbottom |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
fn_details_hurtworld(){ |
|
|
fn_details_hurtworld(){ |
|
|
check_ip.sh |
|
|
|
|
|
fn_parms |
|
|
|
|
|
fn_details_config |
|
|
|
|
|
fn_details_distro |
|
|
|
|
|
fn_details_os |
|
|
|
|
|
fn_details_performance |
|
|
|
|
|
fn_details_disk |
|
|
|
|
|
fn_details_gameserver |
|
|
|
|
|
fn_details_backup |
|
|
|
|
|
fn_details_commandlineparms |
|
|
|
|
|
echo -e "" |
|
|
echo -e "" |
|
|
echo -e "\e[92mPorts\e[0m" |
|
|
echo -e "\e[92mPorts\e[0m" |
|
|
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' = |
|
|
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' = |
|
@ -633,16 +513,6 @@ fn_details_statusbottom |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
fn_details_unreal(){ |
|
|
fn_details_unreal(){ |
|
|
check_ip.sh |
|
|
|
|
|
fn_parms |
|
|
|
|
|
info_config.sh |
|
|
|
|
|
info_distro.sh |
|
|
|
|
|
fn_details_os |
|
|
|
|
|
fn_details_performance |
|
|
|
|
|
fn_details_disk |
|
|
|
|
|
fn_details_gameserver |
|
|
|
|
|
fn_details_backup |
|
|
|
|
|
fn_details_commandlineparms |
|
|
|
|
|
echo -e "" |
|
|
echo -e "" |
|
|
echo -e "\e[92mPorts\e[0m" |
|
|
echo -e "\e[92mPorts\e[0m" |
|
|
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' = |
|
|
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' = |
|
@ -690,16 +560,6 @@ fn_details_statusbottom |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
fn_details_ark(){ |
|
|
fn_details_ark(){ |
|
|
check_ip.sh |
|
|
|
|
|
fn_parms |
|
|
|
|
|
info_config.sh |
|
|
|
|
|
info_distro.sh |
|
|
|
|
|
fn_details_os |
|
|
|
|
|
fn_details_performance |
|
|
|
|
|
fn_details_disk |
|
|
|
|
|
fn_details_gameserver |
|
|
|
|
|
fn_details_backup |
|
|
|
|
|
fn_details_commandlineparms |
|
|
|
|
|
echo -e "" |
|
|
echo -e "" |
|
|
echo -e "\e[92mPorts\e[0m" |
|
|
echo -e "\e[92mPorts\e[0m" |
|
|
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' = |
|
|
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' = |
|
@ -718,6 +578,10 @@ echo -e "" |
|
|
fn_details_statusbottom |
|
|
fn_details_statusbottom |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Run checks and gathers details to display. |
|
|
|
|
|
check.sh |
|
|
|
|
|
|
|
|
if [ ! -e "${servercfgfullpath}" ]; then |
|
|
if [ ! -e "${servercfgfullpath}" ]; then |
|
|
if [ "${gamename}" != "Hurtworld" ]; then |
|
|
if [ "${gamename}" != "Hurtworld" ]; then |
|
|
echo "" |
|
|
echo "" |
|
@ -734,8 +598,21 @@ if [ ! -e "${servercfgfullpath}" ]; then |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
info_config.sh |
|
|
|
|
|
info_distro.sh |
|
|
info_glibc.sh |
|
|
info_glibc.sh |
|
|
|
|
|
fn_details_os |
|
|
|
|
|
fn_details_performance |
|
|
|
|
|
fn_details_gameserver |
|
|
|
|
|
fn_details_backup |
|
|
|
|
|
# Some game servers do not have parms. |
|
|
|
|
|
if [ "${gamename}" != "Teamspeak 3" ]||[ "${engine}" != "avalanche" ]||[ "${engine}" != "dontstarve" ]||[ "${engine}" == "projectzomboid" ]; then |
|
|
|
|
|
fn_parms |
|
|
|
|
|
fn_details_commandlineparms |
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Display details depending on game or engine. |
|
|
if [ "${engine}" == "avalanche" ]; then |
|
|
if [ "${engine}" == "avalanche" ]; then |
|
|
fn_details_avalanche |
|
|
fn_details_avalanche |
|
|
elif [ "${engine}" == "dontstarve" ]; then |
|
|
elif [ "${engine}" == "dontstarve" ]; then |
|
|