From bb7979c7fc7a8c1b81b16113c14d0e94f8ef14c4 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Mon, 6 Jul 2015 23:33:49 +0100 Subject: [PATCH] Added dstserver details --- functions/fn_details | 38 +++++++++++++++++++++++++++++++++----- 1 file changed, 33 insertions(+), 5 deletions(-) diff --git a/functions/fn_details b/functions/fn_details index 4870c7900..89c30a62d 100644 --- a/functions/fn_details +++ b/functions/fn_details @@ -174,6 +174,32 @@ rm -f .fn_details_ports fn_details_statusbottom } +fn_details_dontstarve(){ +fn_check_ip +fn_details_config +fn_details_distro +fn_details_os +fn_details_performance +fn_details_disk +fn_details_gameserver +fn_details_backup +pid=$(tmux list-sessions 2>&1|awk '{print $1}'|grep -E "^${servicename}:"|wc -l) +echo -e "" +echo -e "\e[92mPorts\e[0m" +printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' = +echo -e "Change ports by editing the parameters in" +echo -e "${servercfgfullpath}." +echo -e "" +echo -e "Useful port diagnostic command:" +echo -e "netstat -atunp | grep dontstarve" +echo -e "" +echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL" >> .fn_details_ports +echo -e "> Game\tINBOUND\t${port}\tudp" >> .fn_details_ports +column -s $'\t' -t .fn_details_ports +rm -f .fn_details_ports +fn_details_statusbottom +} + fn_details_projectzomboid(){ fn_check_ip fn_details_config @@ -187,14 +213,14 @@ pid=$(tmux list-sessions 2>&1|awk '{print $1}'|grep -E "^${servicename}:"|wc -l) echo -e "" echo -e "\e[92mPorts\e[0m" printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' = -echo -e "Change ports by editing the command-line" -echo -e "parameters in ${selfname}." +echo -e "Change ports by editing the parameters in" +echo -e "${servercfgfullpath}." echo -e "" echo -e "Useful port diagnostic command:" echo -e "netstat -atunp | grep java" echo -e "" echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL" >> .fn_details_ports -echo -e "> Game/RCON\tINBOUND\t${port}\tudp" >> .fn_details_ports +echo -e "> Game\tINBOUND\t${port}\tudp" >> .fn_details_ports column -s $'\t' -t .fn_details_ports rm -f .fn_details_ports fn_details_statusbottom @@ -375,8 +401,8 @@ fn_details_commandlineparms echo -e "" echo -e "\e[92mPorts\e[0m" printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' = -echo -e "Change ports by editing the command-line" -echo -e "parameters in ${selfname}." +echo -e "Change ports by editing the parameters in" +echo -e "${servercfgfullpath}." echo -e "" echo -e "Useful port diagnostic command:" echo -e "netstat -atunp | grep ts3server" @@ -496,6 +522,8 @@ fn_details_statusbottom if [ "${engine}" == "avalanche" ]; then fn_details_avalanche +elif [ "${engine}" == "dontstarve" ]; then + fn_details_dontstarve elif [ "${engine}" == "projectzomboid" ]; then fn_details_projectzomboid elif [ "${engine}" == "realvirtuality" ]; then