From f8b462208b0a96b8484529ce720da01486cac9ed Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sat, 13 Sep 2014 18:34:21 +0100 Subject: [PATCH] 100914 - Update debug and monitor * Updated debug mode * Monitor changes to monitor to clarify how to activate it fixed issue #156 --- Arma3/arma3server | 2 +- BladeSymphony/bsserver | 22 +++++--- CounterStrike/csserver | 36 +++++++------ CounterStrikeConditionZero/csczserver | 70 +++++++------------------ CounterStrikeGlobalOffensive/csgoserver | 26 +++++---- CounterStrikeSource/cssserver | 27 ++++++---- DayOfDefeat/dodserver | 34 ++++++------ DayOfDefeatSource/dodsserver | 27 ++++++---- FistfulOfFrags/fofserver | 26 ++++++--- GarrysMod/gmodserver | 29 ++++++---- HalfLife2Deathmatch/hl2dmserver | 25 ++++++--- HalfLifeDeathmatchClassic/hldmcserver | 36 +++++++------ Insurgency/insserver | 33 +++++++----- KillingFloor/kfserver | 27 ++++++---- Left4Dead/l4dserver | 28 ++++++---- Left4Dead2/l4d2server | 27 ++++++---- NaturalSelection2/ns2server | 27 ++++++---- NoMoreRoomInHell/nmrihserver | 29 ++++++---- RedOrchestra/roserver | 27 ++++++---- TeamFortress2/tf2server | 27 ++++++---- TeamFortressClassic/tfcserver | 36 +++++++------ UnrealTournament2004/ut2k4server | 25 ++++++--- UnrealTournament99/ut99server | 25 ++++++--- 23 files changed, 407 insertions(+), 264 deletions(-) diff --git a/Arma3/arma3server b/Arma3/arma3server index ab00356ac..7d2fd0d2f 100644 --- a/Arma3/arma3server +++ b/Arma3/arma3server @@ -832,7 +832,7 @@ case "$1" in update-restart) fn_stopserver fn_updateserver - fn_startserver;; + fn_startserver;; validate) fn_validateserver;; validate-restart) diff --git a/BladeSymphony/bsserver b/BladeSymphony/bsserver index e5cab5267..e0c3de678 100644 --- a/BladeSymphony/bsserver +++ b/BladeSymphony/bsserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://danielgibbs.co.uk -# Version: 010914 +# Version: 100914 #### Variables #### @@ -39,7 +39,7 @@ servicename="bs-server" gamename="Blade Symphony" engine="source" -# Directorys +# Directories rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )" selfname="$0" lockselfname=$(echo ".${servicename}.lock") @@ -192,18 +192,26 @@ fn_debugserver(){ fn_rootcheck fn_syscheck fn_autoip +fn_distro +fn_uptime +fn_load fn_parms echo "" echo "${gamename} Debug" echo "============================" echo "" -echo -e "Use for identifying server issues only!" -echo -e "Press CTRL+c to drop out of debug mode" -echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" +echo -e "Distro: ${os}" +echo -e "Arch: ${arch}" +echo -e "Kernel: ${kernel}" +echo -e "Hostname: $HOSTNAME" echo "" echo "Start parameters:" echo ${parms} echo "" +echo -e "Use for identifying server issues only!" +echo -e "Press CTRL+c to drop out of debug mode" +echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" +echo "" while true; do read -p "Continue? [y/N]" yn case $yn in @@ -745,7 +753,7 @@ fn_retryinstall(){ while true; do read -p "Retry install? [y/N]" yn case $yn in - [Yy]* ) fn_install;; + [Yy]* ) fn_install; exit;; [Nn]* ) echo Exiting; exit;; * ) echo "Please answer yes or no.";; esac @@ -840,7 +848,7 @@ case "$1" in update-restart) fn_stopserver fn_updateserver - fn_startserver;; + fn_startserver;; validate) fn_validateserver;; validate-restart) diff --git a/CounterStrike/csserver b/CounterStrike/csserver index 704d4593a..1e5666367 100644 --- a/CounterStrike/csserver +++ b/CounterStrike/csserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://danielgibbs.co.uk -# Version: 050814 +# Version: 100914 #### Variables #### @@ -38,7 +38,7 @@ servicename="cs-server" gamename="Counter Strike 1.6" engine="goldsource" -# Directorys +# Directories rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )" selfname="$0" lockselfname=$(echo ".${servicename}.lock") @@ -191,18 +191,26 @@ fn_debugserver(){ fn_rootcheck fn_syscheck fn_autoip +fn_distro +fn_uptime +fn_load fn_parms echo "" echo "${gamename} Debug" echo "============================" echo "" -echo -e "Use for identifying server issues only!" -echo -e "Press CTRL+c to drop out of debug mode" -echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" +echo -e "Distro: ${os}" +echo -e "Arch: ${arch}" +echo -e "Kernel: ${kernel}" +echo -e "Hostname: $HOSTNAME" echo "" echo "Start parameters:" echo ${parms} echo "" +echo -e "Use for identifying server issues only!" +echo -e "Press CTRL+c to drop out of debug mode" +echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" +echo "" while true; do read -p "Continue? [y/N]" yn case $yn in @@ -466,14 +474,15 @@ fn_monitorserver(){ fn_rootcheck fn_syscheck fn_autoip +fn_printdots "Monitoring ${servicename}: ${servername}" +sleep 1 if [ ! -f ${lockselfname} ]; then fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled" sleep 1 echo -en "\n" + echo "To enable monitor run ${selfname} start" exit fi -fn_printdots "Monitoring ${servicename}: ${servername}" -sleep 1 fn_scriptlog "Monitoring ${servername}" updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l) if [ "${updatecheck}" = "0" ]; then @@ -682,13 +691,12 @@ echo "" } fn_steaminstall(){ +echo "Installing ${gamename} Server" +echo "=================================" sleep 1 mkdir -pv "${filesdir}" cd "${rootdir}/steamcmd" STEAMEXE=steamcmd ./steamcmd.sh +login ${steamuser} ${steampass} +force_install_dir "${filesdir}" +app_update ${appid} validate +quit -} - -fn_success(){ echo "" echo "=================================" while true; do @@ -735,7 +743,7 @@ fn_retryinstall(){ while true; do read -p "Retry install? [y/N]" yn case $yn in - [Yy]* ) fn_install;; + [Yy]* ) fn_install; exit;; [Nn]* ) echo Exiting; exit;; * ) echo "Please answer yes or no.";; esac @@ -771,12 +779,10 @@ while true; do done fn_header fn_steamdl -echo "Installing ${gamename} Server" -echo "=================================" fn_steaminstall fn_steaminstall fn_steaminstall -fn_success +fn_steaminstall fn_steamfix fn_loginstall echo "Configuring ${gamename} Server" @@ -858,7 +864,7 @@ case "$1" in update-restart) fn_stopserver fn_updateserver - fn_startserver;; + fn_startserver;; validate) fn_validateserver;; validate-restart) diff --git a/CounterStrikeConditionZero/csczserver b/CounterStrikeConditionZero/csczserver index 62d4c8e56..8b71b2b64 100644 --- a/CounterStrikeConditionZero/csczserver +++ b/CounterStrikeConditionZero/csczserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://danielgibbs.co.uk -# Version: 050814 +# Version: 100914 #### Variables #### @@ -38,7 +38,7 @@ servicename="cscz-server" gamename="Counter Strike: Condition Zero" engine="goldsource" -# Directorys +# Directories rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )" selfname="$0" lockselfname=$(echo ".${servicename}.lock") @@ -191,18 +191,26 @@ fn_debugserver(){ fn_rootcheck fn_syscheck fn_autoip +fn_distro +fn_uptime +fn_load fn_parms echo "" echo "${gamename} Debug" echo "============================" echo "" -echo -e "Use for identifying server issues only!" -echo -e "Press CTRL+c to drop out of debug mode" -echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" +echo -e "Distro: ${os}" +echo -e "Arch: ${arch}" +echo -e "Kernel: ${kernel}" +echo -e "Hostname: $HOSTNAME" echo "" echo "Start parameters:" echo ${parms} echo "" +echo -e "Use for identifying server issues only!" +echo -e "Press CTRL+c to drop out of debug mode" +echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" +echo "" while true; do read -p "Continue? [y/N]" yn case $yn in @@ -466,14 +474,15 @@ fn_monitorserver(){ fn_rootcheck fn_syscheck fn_autoip +fn_printdots "Monitoring ${servicename}: ${servername}" +sleep 1 if [ ! -f ${lockselfname} ]; then fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled" sleep 1 echo -en "\n" + echo "To enable monitor run ${selfname} start" exit fi -fn_printdots "Monitoring ${servicename}: ${servername}" -sleep 1 fn_scriptlog "Monitoring ${servername}" updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l) if [ "${updatecheck}" = "0" ]; then @@ -649,33 +658,6 @@ echo "" ## Installer # -fn_csczappmanifest(){ -appdir="${filesdir}/1ea271ace3aa6eb2cbade5b6f37851d19ffb9e6f" -if [ ${pass} == 1 ]; then - echo "Creating appmanifest directory. (app 90 fix)" - sleep 2 - mkdir -v "${filesdir}" - mkdir -v "${appdir}" - cd "${appdir}" - echo "Removing any existing appmanifest files. (app 90 fix)" - sleep 2 - rm -f appmanifest_10.acf appmanifest_70.acf appmanifest_90.acf -elif [ ${pass} == 2 ]; then - echo "Downloading HLDS appmanifest files. (app 90 fix)" - sleep 2 - cd "${appdir}" - wget https://raw.github.com/dgibbs64/linuxgameservers/master/appmanifest/appmanifest_10.acf - wget https://raw.github.com/dgibbs64/linuxgameservers/master/appmanifest/appmanifest_70.acf - wget https://raw.github.com/dgibbs64/linuxgameservers/master/appmanifest/appmanifest_90.acf -elif [ ${pass} == 3 ]; then - echo "Downloading ${gamename} appmanifest files. (app 90 fix)" - sleep 2 - cd "${appdir}" - rm -f appmanifest_90.acf - wget https://raw.github.com/dgibbs64/linuxgameservers/master/appmanifest/czero/appmanifest_90.acf -fi -} - fn_header(){ clear echo "=================================" @@ -709,13 +691,12 @@ echo "" } fn_steaminstall(){ +echo "Installing ${gamename} Server" +echo "=================================" sleep 1 mkdir -pv "${filesdir}" cd "${rootdir}/steamcmd" STEAMEXE=steamcmd ./steamcmd.sh +login ${steamuser} ${steampass} +force_install_dir "${filesdir}" +app_update ${appid} validate +quit -} - -fn_success(){ echo "" echo "=================================" while true; do @@ -762,7 +743,7 @@ fn_retryinstall(){ while true; do read -p "Retry install? [y/N]" yn case $yn in - [Yy]* ) fn_install;; + [Yy]* ) fn_install; exit;; [Nn]* ) echo Exiting; exit;; * ) echo "Please answer yes or no.";; esac @@ -798,20 +779,7 @@ while true; do done fn_header fn_steamdl -echo "Installing ${gamename} Server" -echo "=================================" -pass=1 -fn_csczappmanifest -pass=2 -fn_csczappmanifest -fn_steaminstall -fn_steaminstall -pass=3 -fn_csczappmanifest -fn_steaminstall -fn_steaminstall fn_steaminstall -fn_success fn_steamfix fn_loginstall echo "Configuring ${gamename} Server" diff --git a/CounterStrikeGlobalOffensive/csgoserver b/CounterStrikeGlobalOffensive/csgoserver index 50e8357e3..e85479ed4 100644 --- a/CounterStrikeGlobalOffensive/csgoserver +++ b/CounterStrikeGlobalOffensive/csgoserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://danielgibbs.co.uk -# Version: 050814 +# Version: 100914 #### Variables #### @@ -56,7 +56,7 @@ servicename="csgo-server" gamename="Counter Strike: Global Offensive" engine="source" -# Directorys +# Directories rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )" selfname="$0" lockselfname=$(echo ".${servicename}.lock") @@ -209,19 +209,26 @@ fn_debugserver(){ fn_rootcheck fn_syscheck fn_autoip -fn_csgoappidfix +fn_distro +fn_uptime +fn_load fn_parms echo "" echo "${gamename} Debug" echo "============================" echo "" -echo -e "Use for identifying server issues only!" -echo -e "Press CTRL+c to drop out of debug mode" -echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" +echo -e "Distro: ${os}" +echo -e "Arch: ${arch}" +echo -e "Kernel: ${kernel}" +echo -e "Hostname: $HOSTNAME" echo "" echo "Start parameters:" echo ${parms} echo "" +echo -e "Use for identifying server issues only!" +echo -e "Press CTRL+c to drop out of debug mode" +echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" +echo "" while true; do read -p "Continue? [y/N]" yn case $yn in @@ -485,14 +492,15 @@ fn_monitorserver(){ fn_rootcheck fn_syscheck fn_autoip +fn_printdots "Monitoring ${servicename}: ${servername}" +sleep 1 if [ ! -f ${lockselfname} ]; then fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled" sleep 1 echo -en "\n" + echo "To enable monitor run ${selfname} start" exit fi -fn_printdots "Monitoring ${servicename}: ${servername}" -sleep 1 fn_scriptlog "Monitoring ${servername}" updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l) if [ "${updatecheck}" = "0" ]; then @@ -765,7 +773,7 @@ fn_retryinstall(){ while true; do read -p "Retry install? [y/N]" yn case $yn in - [Yy]* ) fn_install;; + [Yy]* ) fn_install; exit;; [Nn]* ) echo Exiting; exit;; * ) echo "Please answer yes or no.";; esac diff --git a/CounterStrikeSource/cssserver b/CounterStrikeSource/cssserver index 550af66ad..f21b217d1 100644 --- a/CounterStrikeSource/cssserver +++ b/CounterStrikeSource/cssserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://danielgibbs.co.uk -# Version: 050814 +# Version: 100914 #### Variables #### @@ -39,7 +39,7 @@ servicename="css-server" gamename="Counter Strike: Source" engine="source" -# Directorys +# Directories rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )" selfname="$0" lockselfname=$(echo ".${servicename}.lock") @@ -192,18 +192,26 @@ fn_debugserver(){ fn_rootcheck fn_syscheck fn_autoip +fn_distro +fn_uptime +fn_load fn_parms echo "" echo "${gamename} Debug" echo "============================" echo "" -echo -e "Use for identifying server issues only!" -echo -e "Press CTRL+c to drop out of debug mode" -echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" +echo -e "Distro: ${os}" +echo -e "Arch: ${arch}" +echo -e "Kernel: ${kernel}" +echo -e "Hostname: $HOSTNAME" echo "" echo "Start parameters:" echo ${parms} echo "" +echo -e "Use for identifying server issues only!" +echo -e "Press CTRL+c to drop out of debug mode" +echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" +echo "" while true; do read -p "Continue? [y/N]" yn case $yn in @@ -467,14 +475,15 @@ fn_monitorserver(){ fn_rootcheck fn_syscheck fn_autoip +fn_printdots "Monitoring ${servicename}: ${servername}" +sleep 1 if [ ! -f ${lockselfname} ]; then fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled" sleep 1 echo -en "\n" + echo "To enable monitor run ${selfname} start" exit fi -fn_printdots "Monitoring ${servicename}: ${servername}" -sleep 1 fn_scriptlog "Monitoring ${servername}" updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l) if [ "${updatecheck}" = "0" ]; then @@ -735,7 +744,7 @@ fn_retryinstall(){ while true; do read -p "Retry install? [y/N]" yn case $yn in - [Yy]* ) fn_install;; + [Yy]* ) fn_install; exit;; [Nn]* ) echo Exiting; exit;; * ) echo "Please answer yes or no.";; esac @@ -829,7 +838,7 @@ case "$1" in update-restart) fn_stopserver fn_updateserver - fn_startserver;; + fn_startserver;; validate) fn_validateserver;; validate-restart) diff --git a/DayOfDefeat/dodserver b/DayOfDefeat/dodserver index e333bac57..635b4db85 100644 --- a/DayOfDefeat/dodserver +++ b/DayOfDefeat/dodserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://danielgibbs.co.uk -# Version: 050814 +# Version: 100914 #### Variables #### @@ -38,7 +38,7 @@ servicename="dod-server" gamename="Day of Defeat" engine="goldsource" -# Directorys +# Directories rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )" selfname="$0" lockselfname=$(echo ".${servicename}.lock") @@ -191,18 +191,26 @@ fn_debugserver(){ fn_rootcheck fn_syscheck fn_autoip +fn_distro +fn_uptime +fn_load fn_parms echo "" echo "${gamename} Debug" echo "============================" echo "" -echo -e "Use for identifying server issues only!" -echo -e "Press CTRL+c to drop out of debug mode" -echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" +echo -e "Distro: ${os}" +echo -e "Arch: ${arch}" +echo -e "Kernel: ${kernel}" +echo -e "Hostname: $HOSTNAME" echo "" echo "Start parameters:" echo ${parms} echo "" +echo -e "Use for identifying server issues only!" +echo -e "Press CTRL+c to drop out of debug mode" +echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" +echo "" while true; do read -p "Continue? [y/N]" yn case $yn in @@ -466,14 +474,15 @@ fn_monitorserver(){ fn_rootcheck fn_syscheck fn_autoip +fn_printdots "Monitoring ${servicename}: ${servername}" +sleep 1 if [ ! -f ${lockselfname} ]; then fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled" sleep 1 echo -en "\n" + echo "To enable monitor run ${selfname} start" exit fi -fn_printdots "Monitoring ${servicename}: ${servername}" -sleep 1 fn_scriptlog "Monitoring ${servername}" updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l) if [ "${updatecheck}" = "0" ]; then @@ -682,13 +691,12 @@ echo "" } fn_steaminstall(){ +echo "Installing ${gamename} Server" +echo "=================================" sleep 1 mkdir -pv "${filesdir}" cd "${rootdir}/steamcmd" STEAMEXE=steamcmd ./steamcmd.sh +login ${steamuser} ${steampass} +force_install_dir "${filesdir}" +app_update ${appid} validate +quit -} - -fn_success(){ echo "" echo "=================================" while true; do @@ -735,7 +743,7 @@ fn_retryinstall(){ while true; do read -p "Retry install? [y/N]" yn case $yn in - [Yy]* ) fn_install;; + [Yy]* ) fn_install; exit;; [Nn]* ) echo Exiting; exit;; * ) echo "Please answer yes or no.";; esac @@ -771,14 +779,10 @@ while true; do done fn_header fn_steamdl -echo "Installing ${gamename} Server" -echo "=================================" -fn_steaminstall fn_steaminstall fn_steaminstall fn_steaminstall fn_steaminstall -fn_success fn_steamfix fn_loginstall echo "Configuring ${gamename} Server" diff --git a/DayOfDefeatSource/dodsserver b/DayOfDefeatSource/dodsserver index a763497ce..e0f469a4b 100644 --- a/DayOfDefeatSource/dodsserver +++ b/DayOfDefeatSource/dodsserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://danielgibbs.co.uk -# Version: 050814 +# Version: 100914 #### Variables #### @@ -39,7 +39,7 @@ servicename="dods-server" gamename="Day of Defeat: Source" engine="source" -# Directorys +# Directories rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )" selfname="$0" lockselfname=$(echo ".${servicename}.lock") @@ -192,18 +192,26 @@ fn_debugserver(){ fn_rootcheck fn_syscheck fn_autoip +fn_distro +fn_uptime +fn_load fn_parms echo "" echo "${gamename} Debug" echo "============================" echo "" -echo -e "Use for identifying server issues only!" -echo -e "Press CTRL+c to drop out of debug mode" -echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" +echo -e "Distro: ${os}" +echo -e "Arch: ${arch}" +echo -e "Kernel: ${kernel}" +echo -e "Hostname: $HOSTNAME" echo "" echo "Start parameters:" echo ${parms} echo "" +echo -e "Use for identifying server issues only!" +echo -e "Press CTRL+c to drop out of debug mode" +echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" +echo "" while true; do read -p "Continue? [y/N]" yn case $yn in @@ -467,14 +475,15 @@ fn_monitorserver(){ fn_rootcheck fn_syscheck fn_autoip +fn_printdots "Monitoring ${servicename}: ${servername}" +sleep 1 if [ ! -f ${lockselfname} ]; then fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled" sleep 1 echo -en "\n" + echo "To enable monitor run ${selfname} start" exit fi -fn_printdots "Monitoring ${servicename}: ${servername}" -sleep 1 fn_scriptlog "Monitoring ${servername}" updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l) if [ "${updatecheck}" = "0" ]; then @@ -735,7 +744,7 @@ fn_retryinstall(){ while true; do read -p "Retry install? [y/N]" yn case $yn in - [Yy]* ) fn_install;; + [Yy]* ) fn_install; exit;; [Nn]* ) echo Exiting; exit;; * ) echo "Please answer yes or no.";; esac @@ -829,7 +838,7 @@ case "$1" in update-restart) fn_stopserver fn_updateserver - fn_startserver;; + fn_startserver;; validate) fn_validateserver;; validate-restart) diff --git a/FistfulOfFrags/fofserver b/FistfulOfFrags/fofserver index dc3eb1a46..f2476d381 100644 --- a/FistfulOfFrags/fofserver +++ b/FistfulOfFrags/fofserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://danielgibbs.co.uk -# Version: 050814 +# Version: 100914 #### Variables #### @@ -39,7 +39,7 @@ servicename="fof-server" gamename="Fistful of Frags" engine="source" -# Directorys +# Directories rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )" selfname="$0" lockselfname=$(echo ".${servicename}.lock") @@ -192,11 +192,22 @@ fn_debugserver(){ fn_rootcheck fn_syscheck fn_autoip +fn_distro +fn_uptime +fn_load fn_parms echo "" echo "${gamename} Debug" echo "============================" echo "" +echo -e "Distro: ${os}" +echo -e "Arch: ${arch}" +echo -e "Kernel: ${kernel}" +echo -e "Hostname: $HOSTNAME" +echo "" +echo "Start parameters:" +echo ${parms} +echo "" echo -e "Use for identifying server issues only!" echo -e "Press CTRL+c to drop out of debug mode" echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" @@ -467,14 +478,15 @@ fn_monitorserver(){ fn_rootcheck fn_syscheck fn_autoip +fn_printdots "Monitoring ${servicename}: ${servername}" +sleep 1 if [ ! -f ${lockselfname} ]; then fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled" sleep 1 echo -en "\n" + echo "To enable monitor run ${selfname} start" exit fi -fn_printdots "Monitoring ${servicename}: ${servername}" -sleep 1 fn_scriptlog "Monitoring ${servername}" updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l) if [ "${updatecheck}" = "0" ]; then @@ -654,7 +666,7 @@ fn_fofdeps(){ echo "Downloading libm.so.6" echo "=================================" cd "${filesdir}" -wget https://github.com/dgibbs64/linuxgameservers/raw/master/FistfulOfFrags/dependencies/libm.so.6 +wget -nv https://github.com/dgibbs64/linuxgameservers/raw/master/FistfulOfFrags/dependencies/libm.so.6 sleep 1 echo "" } @@ -744,7 +756,7 @@ fn_retryinstall(){ while true; do read -p "Retry install? [y/N]" yn case $yn in - [Yy]* ) fn_install;; + [Yy]* ) fn_install; exit;; [Nn]* ) echo Exiting; exit;; * ) echo "Please answer yes or no.";; esac @@ -873,7 +885,7 @@ case "$1" in update-restart) fn_stopserver fn_updateserver - fn_startserver;; + fn_startserver;; validate) fn_validateserver;; validate-restart) diff --git a/GarrysMod/gmodserver b/GarrysMod/gmodserver index b51aef77d..2a701b08b 100644 --- a/GarrysMod/gmodserver +++ b/GarrysMod/gmodserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://danielgibbs.co.uk -# Version: 240814 +# Version: 100914 #### Variables #### @@ -44,7 +44,7 @@ servicename="gmod-server" gamename="Garrys's Mod" engine="source" -# Directorys +# Directories rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )" selfname="$0" lockselfname=$(echo ".${servicename}.lock") @@ -197,18 +197,26 @@ fn_debugserver(){ fn_rootcheck fn_syscheck fn_autoip +fn_distro +fn_uptime +fn_load fn_parms echo "" echo "${gamename} Debug" echo "============================" echo "" -echo -e "Use for identifying server issues only!" -echo -e "Press CTRL+c to drop out of debug mode" -echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" +echo -e "Distro: ${os}" +echo -e "Arch: ${arch}" +echo -e "Kernel: ${kernel}" +echo -e "Hostname: $HOSTNAME" echo "" echo "Start parameters:" echo ${parms} echo "" +echo -e "Use for identifying server issues only!" +echo -e "Press CTRL+c to drop out of debug mode" +echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" +echo "" while true; do read -p "Continue? [y/N]" yn case $yn in @@ -472,14 +480,15 @@ fn_monitorserver(){ fn_rootcheck fn_syscheck fn_autoip +fn_printdots "Monitoring ${servicename}: ${servername}" +sleep 1 if [ ! -f ${lockselfname} ]; then fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled" sleep 1 echo -en "\n" + echo "To enable monitor run ${selfname} start" exit fi -fn_printdots "Monitoring ${servicename}: ${servername}" -sleep 1 fn_scriptlog "Monitoring ${servername}" updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l) if [ "${updatecheck}" = "0" ]; then @@ -760,7 +769,7 @@ fn_retryinstall(){ while true; do read -p "Retry install? [y/N]" yn case $yn in - [Yy]* ) fn_install;; + [Yy]* ) fn_install; exit;; [Nn]* ) echo Exiting; exit;; * ) echo "Please answer yes or no.";; esac @@ -925,7 +934,7 @@ case "$1" in update-restart) fn_stopserver fn_updateserver - fn_startserver;; + fn_startserver;; validate) fn_validateserver;; validate-restart) @@ -950,4 +959,4 @@ case "$1" in echo "Usage: $0 {start|stop|restart|update|update-restart|validate|validate-restart|monitor|email-test|details|backup|console|debug|install}" exit 1;; esac -exit +exit \ No newline at end of file diff --git a/HalfLife2Deathmatch/hl2dmserver b/HalfLife2Deathmatch/hl2dmserver index 37663bec3..0c51f75cf 100644 --- a/HalfLife2Deathmatch/hl2dmserver +++ b/HalfLife2Deathmatch/hl2dmserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://danielgibbs.co.uk -# Version: 050814 +# Version: 100914 #### Variables #### @@ -39,7 +39,7 @@ servicename="hl2dm-server" gamename="Half Life 2: Deathmatch" engine="source" -# Directorys +# Directories rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )" selfname="$0" lockselfname=$(echo ".${servicename}.lock") @@ -192,18 +192,26 @@ fn_debugserver(){ fn_rootcheck fn_syscheck fn_autoip +fn_distro +fn_uptime +fn_load fn_parms echo "" echo "${gamename} Debug" echo "============================" echo "" -echo -e "Use for identifying server issues only!" -echo -e "Press CTRL+c to drop out of debug mode" -echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" +echo -e "Distro: ${os}" +echo -e "Arch: ${arch}" +echo -e "Kernel: ${kernel}" +echo -e "Hostname: $HOSTNAME" echo "" echo "Start parameters:" echo ${parms} echo "" +echo -e "Use for identifying server issues only!" +echo -e "Press CTRL+c to drop out of debug mode" +echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" +echo "" while true; do read -p "Continue? [y/N]" yn case $yn in @@ -467,14 +475,15 @@ fn_monitorserver(){ fn_rootcheck fn_syscheck fn_autoip +fn_printdots "Monitoring ${servicename}: ${servername}" +sleep 1 if [ ! -f ${lockselfname} ]; then fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled" sleep 1 echo -en "\n" + echo "To enable monitor run ${selfname} start" exit fi -fn_printdots "Monitoring ${servicename}: ${servername}" -sleep 1 fn_scriptlog "Monitoring ${servername}" updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l) if [ "${updatecheck}" = "0" ]; then @@ -735,7 +744,7 @@ fn_retryinstall(){ while true; do read -p "Retry install? [y/N]" yn case $yn in - [Yy]* ) fn_install;; + [Yy]* ) fn_install; exit;; [Nn]* ) echo Exiting; exit;; * ) echo "Please answer yes or no.";; esac diff --git a/HalfLifeDeathmatchClassic/hldmcserver b/HalfLifeDeathmatchClassic/hldmcserver index f3a6855e4..a87dbc94f 100644 --- a/HalfLifeDeathmatchClassic/hldmcserver +++ b/HalfLifeDeathmatchClassic/hldmcserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://danielgibbs.co.uk -# Version: 050814 +# Version: 100914 #### Variables #### @@ -38,7 +38,7 @@ servicename="hldmc-server" gamename="Half Life: Deathmatch Classic" engine="goldsource" -# Directorys +# Directories rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )" selfname="$0" lockselfname=$(echo ".${servicename}.lock") @@ -191,18 +191,26 @@ fn_debugserver(){ fn_rootcheck fn_syscheck fn_autoip +fn_distro +fn_uptime +fn_load fn_parms echo "" echo "${gamename} Debug" echo "============================" echo "" -echo -e "Use for identifying server issues only!" -echo -e "Press CTRL+c to drop out of debug mode" -echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" +echo -e "Distro: ${os}" +echo -e "Arch: ${arch}" +echo -e "Kernel: ${kernel}" +echo -e "Hostname: $HOSTNAME" echo "" echo "Start parameters:" echo ${parms} echo "" +echo -e "Use for identifying server issues only!" +echo -e "Press CTRL+c to drop out of debug mode" +echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" +echo "" while true; do read -p "Continue? [y/N]" yn case $yn in @@ -466,14 +474,15 @@ fn_monitorserver(){ fn_rootcheck fn_syscheck fn_autoip +fn_printdots "Monitoring ${servicename}: ${servername}" +sleep 1 if [ ! -f ${lockselfname} ]; then fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled" sleep 1 echo -en "\n" + echo "To enable monitor run ${selfname} start" exit fi -fn_printdots "Monitoring ${servicename}: ${servername}" -sleep 1 fn_scriptlog "Monitoring ${servername}" updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l) if [ "${updatecheck}" = "0" ]; then @@ -682,13 +691,12 @@ echo "" } fn_steaminstall(){ +echo "Installing ${gamename} Server" +echo "=================================" sleep 1 mkdir -pv "${filesdir}" cd "${rootdir}/steamcmd" STEAMEXE=steamcmd ./steamcmd.sh +login ${steamuser} ${steampass} +force_install_dir "${filesdir}" +app_update ${appid} validate +quit -} - -fn_success(){ echo "" echo "=================================" while true; do @@ -735,7 +743,7 @@ fn_retryinstall(){ while true; do read -p "Retry install? [y/N]" yn case $yn in - [Yy]* ) fn_install;; + [Yy]* ) fn_install; exit;; [Nn]* ) echo Exiting; exit;; * ) echo "Please answer yes or no.";; esac @@ -771,12 +779,10 @@ while true; do done fn_header fn_steamdl -echo "Installing ${gamename} Server" -echo "=================================" fn_steaminstall fn_steaminstall fn_steaminstall -fn_success +fn_steaminstall fn_steamfix fn_loginstall echo "Configuring ${gamename} Server" @@ -858,7 +864,7 @@ case "$1" in update-restart) fn_stopserver fn_updateserver - fn_startserver;; + fn_startserver;; validate) fn_validateserver;; validate-restart) diff --git a/Insurgency/insserver b/Insurgency/insserver index b6fa68508..6caf91782 100644 --- a/Insurgency/insserver +++ b/Insurgency/insserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://danielgibbs.co.uk -# Version: 050814 +# Version: 100914 #### Variables #### @@ -39,7 +39,7 @@ servicename="ins-server" gamename="Insurgency" engine="source" -# Directorys +# Directories rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )" selfname="$0" lockselfname=$(echo ".${servicename}.lock") @@ -192,18 +192,26 @@ fn_debugserver(){ fn_rootcheck fn_syscheck fn_autoip +fn_distro +fn_uptime +fn_load fn_parms echo "" echo "${gamename} Debug" echo "============================" echo "" -echo -e "Use for identifying server issues only!" -echo -e "Press CTRL+c to drop out of debug mode" -echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" +echo -e "Distro: ${os}" +echo -e "Arch: ${arch}" +echo -e "Kernel: ${kernel}" +echo -e "Hostname: $HOSTNAME" echo "" echo "Start parameters:" echo ${parms} echo "" +echo -e "Use for identifying server issues only!" +echo -e "Press CTRL+c to drop out of debug mode" +echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" +echo "" while true; do read -p "Continue? [y/N]" yn case $yn in @@ -467,14 +475,15 @@ fn_monitorserver(){ fn_rootcheck fn_syscheck fn_autoip +fn_printdots "Monitoring ${servicename}: ${servername}" +sleep 1 if [ ! -f ${lockselfname} ]; then fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled" sleep 1 echo -en "\n" + echo "To enable monitor run ${selfname} start" exit fi -fn_printdots "Monitoring ${servicename}: ${servername}" -sleep 1 fn_scriptlog "Monitoring ${servername}" updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l) if [ "${updatecheck}" = "0" ]; then @@ -655,9 +664,9 @@ echo "Downloading libc.so.6, libpthread.so.0 & librt.so.1" echo "=================================" sleep 1 cd "${filesdir}/bin" -wget https://github.com/dgibbs64/linuxgameservers/raw/master/Insurgency/dependencies/libc.so.6 -wget https://github.com/dgibbs64/linuxgameservers/raw/master/Insurgency/dependencies/libpthread.so.0 -wget https://github.com/dgibbs64/linuxgameservers/raw/master/Insurgency/dependencies/librt.so.1 +wget -nv https://github.com/dgibbs64/linuxgameservers/raw/master/Insurgency/dependencies/libc.so.6 +wget -nv https://github.com/dgibbs64/linuxgameservers/raw/master/Insurgency/dependencies/libpthread.so.0 +wget -nv https://github.com/dgibbs64/linuxgameservers/raw/master/Insurgency/dependencies/librt.so.1 sleep 1 echo "" } @@ -747,7 +756,7 @@ fn_retryinstall(){ while true; do read -p "Retry install? [y/N]" yn case $yn in - [Yy]* ) fn_install;; + [Yy]* ) fn_install; exit;; [Nn]* ) echo Exiting; exit;; * ) echo "Please answer yes or no.";; esac @@ -842,7 +851,7 @@ case "$1" in update-restart) fn_stopserver fn_updateserver - fn_startserver;; + fn_startserver;; validate) fn_validateserver;; validate-restart) diff --git a/KillingFloor/kfserver b/KillingFloor/kfserver index d796dee81..66528895c 100644 --- a/KillingFloor/kfserver +++ b/KillingFloor/kfserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://danielgibbs.co.uk -# Version: 050814 +# Version: 100914 #### Variables #### @@ -19,7 +19,7 @@ steampass="password" # Steam appid="215360" -# Directorys +# Directories rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )" selfname="$0" lockselfname=$(echo ".${servicename}.lock") @@ -182,18 +182,26 @@ fn_debugserver(){ fn_rootcheck fn_syscheck fn_autoip +fn_distro +fn_uptime +fn_load fn_parms echo "" echo "${gamename} Debug" echo "============================" echo "" -echo -e "Use for identifying server issues only!" -echo -e "Press CTRL+c to drop out of debug mode" -echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" +echo -e "Distro: ${os}" +echo -e "Arch: ${arch}" +echo -e "Kernel: ${kernel}" +echo -e "Hostname: $HOSTNAME" echo "" echo "Start parameters:" echo ${parms} echo "" +echo -e "Use for identifying server issues only!" +echo -e "Press CTRL+c to drop out of debug mode" +echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" +echo "" while true; do read -p "Continue? [y/N]" yn case $yn in @@ -457,14 +465,15 @@ fn_monitorserver(){ fn_rootcheck fn_syscheck fn_autoip +fn_printdots "Monitoring ${servicename}: ${servername}" +sleep 1 if [ ! -f ${lockselfname} ]; then fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled" sleep 1 echo -en "\n" + echo "To enable monitor run ${selfname} start" exit fi -fn_printdots "Monitoring ${servicename}: ${servername}" -sleep 1 fn_scriptlog "Monitoring ${servername}" updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l) if [ "${updatecheck}" = "0" ]; then @@ -782,7 +791,7 @@ fn_retryinstall(){ while true; do read -p "Retry install? [y/N]" yn case $yn in - [Yy]* ) fn_install;; + [Yy]* ) fn_install; exit;; [Nn]* ) echo Exiting; exit;; * ) echo "Please answer yes or no.";; esac @@ -876,7 +885,7 @@ case "$1" in update-restart) fn_stopserver fn_updateserver - fn_startserver;; + fn_startserver;; validate) fn_validateserver;; validate-restart) diff --git a/Left4Dead/l4dserver b/Left4Dead/l4dserver index 396d908dc..28b9293c5 100644 --- a/Left4Dead/l4dserver +++ b/Left4Dead/l4dserver @@ -5,7 +5,7 @@ # Contributor: Summit Singh Thakur # Author Website: http://danielgibbs.co.uk # Contributor Website: http://www.summit.im -# Version: 290814 +# Version: 100914 #### Variables #### @@ -40,7 +40,7 @@ servicename="l4d-server" gamename="Left 4 Dead" engine="source" -# Directorys +# Directories rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )" selfname="$0" lockselfname=$(echo ".${servicename}.lock") @@ -193,18 +193,26 @@ fn_debugserver(){ fn_rootcheck fn_syscheck fn_autoip +fn_distro +fn_uptime +fn_load fn_parms echo "" echo "${gamename} Debug" echo "============================" echo "" -echo -e "Use for identifying server issues only!" -echo -e "Press CTRL+c to drop out of debug mode" -echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" +echo -e "Distro: ${os}" +echo -e "Arch: ${arch}" +echo -e "Kernel: ${kernel}" +echo -e "Hostname: $HOSTNAME" echo "" echo "Start parameters:" echo ${parms} echo "" +echo -e "Use for identifying server issues only!" +echo -e "Press CTRL+c to drop out of debug mode" +echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" +echo "" while true; do read -p "Continue? [y/N]" yn case $yn in @@ -468,14 +476,15 @@ fn_monitorserver(){ fn_rootcheck fn_syscheck fn_autoip +fn_printdots "Monitoring ${servicename}: ${servername}" +sleep 1 if [ ! -f ${lockselfname} ]; then fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled" sleep 1 echo -en "\n" + echo "To enable monitor run ${selfname} start" exit fi -fn_printdots "Monitoring ${servicename}: ${servername}" -sleep 1 fn_scriptlog "Monitoring ${servername}" updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l) if [ "${updatecheck}" = "0" ]; then @@ -667,6 +676,7 @@ echo "=================================" echo "${gamename}" echo "Linux Game Server Manager" echo "by Daniel Gibbs" +echo "contributions by Summit Singh Thakur" echo "http://danielgibbs.co.uk" echo "=================================" echo "" @@ -746,7 +756,7 @@ fn_retryinstall(){ while true; do read -p "Retry install? [y/N]" yn case $yn in - [Yy]* ) fn_install;; + [Yy]* ) fn_install; exit;; [Nn]* ) echo Exiting; exit;; * ) echo "Please answer yes or no.";; esac @@ -841,7 +851,7 @@ case "$1" in update-restart) fn_stopserver fn_updateserver - fn_startserver;; + fn_startserver;; validate) fn_validateserver;; validate-restart) diff --git a/Left4Dead2/l4d2server b/Left4Dead2/l4d2server index 8aca2b63f..b3f30c122 100644 --- a/Left4Dead2/l4d2server +++ b/Left4Dead2/l4d2server @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://danielgibbs.co.uk -# Version: 050814 +# Version: 100914 #### Variables #### @@ -38,7 +38,7 @@ servicename="l4d2-server" gamename="Left 4 Dead 2" engine="source" -# Directorys +# Directories rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )" selfname="$0" lockselfname=$(echo ".${servicename}.lock") @@ -191,18 +191,26 @@ fn_debugserver(){ fn_rootcheck fn_syscheck fn_autoip +fn_distro +fn_uptime +fn_load fn_parms echo "" echo "${gamename} Debug" echo "============================" echo "" -echo -e "Use for identifying server issues only!" -echo -e "Press CTRL+c to drop out of debug mode" -echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" +echo -e "Distro: ${os}" +echo -e "Arch: ${arch}" +echo -e "Kernel: ${kernel}" +echo -e "Hostname: $HOSTNAME" echo "" echo "Start parameters:" echo ${parms} echo "" +echo -e "Use for identifying server issues only!" +echo -e "Press CTRL+c to drop out of debug mode" +echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" +echo "" while true; do read -p "Continue? [y/N]" yn case $yn in @@ -466,14 +474,15 @@ fn_monitorserver(){ fn_rootcheck fn_syscheck fn_autoip +fn_printdots "Monitoring ${servicename}: ${servername}" +sleep 1 if [ ! -f ${lockselfname} ]; then fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled" sleep 1 echo -en "\n" + echo "To enable monitor run ${selfname} start" exit fi -fn_printdots "Monitoring ${servicename}: ${servername}" -sleep 1 fn_scriptlog "Monitoring ${servername}" updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l) if [ "${updatecheck}" = "0" ]; then @@ -734,7 +743,7 @@ fn_retryinstall(){ while true; do read -p "Retry install? [y/N]" yn case $yn in - [Yy]* ) fn_install;; + [Yy]* ) fn_install; exit;; [Nn]* ) echo Exiting; exit;; * ) echo "Please answer yes or no.";; esac @@ -828,7 +837,7 @@ case "$1" in update-restart) fn_stopserver fn_updateserver - fn_startserver;; + fn_startserver;; validate) fn_validateserver;; validate-restart) diff --git a/NaturalSelection2/ns2server b/NaturalSelection2/ns2server index d121fdeb9..904dec1f2 100644 --- a/NaturalSelection2/ns2server +++ b/NaturalSelection2/ns2server @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://danielgibbs.co.uk -# Version: 050814 +# Version: 100914 #### Variables #### @@ -189,18 +189,26 @@ fn_debugserver(){ fn_rootcheck fn_syscheck fn_autoip +fn_distro +fn_uptime +fn_load fn_parms echo "" echo "${gamename} Debug" echo "============================" echo "" -echo -e "Use for identifying server issues only!" -echo -e "Press CTRL+c to drop out of debug mode" -echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" +echo -e "Distro: ${os}" +echo -e "Arch: ${arch}" +echo -e "Kernel: ${kernel}" +echo -e "Hostname: $HOSTNAME" echo "" echo "Start parameters:" echo ${parms} echo "" +echo -e "Use for identifying server issues only!" +echo -e "Press CTRL+c to drop out of debug mode" +echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" +echo "" while true; do read -p "Continue? [y/N]" yn case $yn in @@ -464,14 +472,15 @@ fn_monitorserver(){ fn_rootcheck fn_syscheck fn_autoip +fn_printdots "Monitoring ${servicename}: ${servername}" +sleep 1 if [ ! -f ${lockselfname} ]; then fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled" sleep 1 echo -en "\n" + echo "To enable monitor run ${selfname} start" exit fi -fn_printdots "Monitoring ${servicename}: ${servername}" -sleep 1 fn_scriptlog "Monitoring ${servername}" updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l) if [ "${updatecheck}" = "0" ]; then @@ -652,7 +661,7 @@ fn_ns2deps(){ echo "Downloading libm.so.6" echo "=================================" cd "${filesdir}" -wget https://github.com/dgibbs64/linuxgameservers/raw/master/NaturalSelection2/dependencies/libm.so.6 +wget -nv https://github.com/dgibbs64/linuxgameservers/raw/master/NaturalSelection2/dependencies/libm.so.6 sleep 1 echo "" echo "Copying libstdc++.so.6" @@ -748,7 +757,7 @@ fn_retryinstall(){ while true; do read -p "Retry install? [y/N]" yn case $yn in - [Yy]* ) fn_install;; + [Yy]* ) fn_install; exit;; [Nn]* ) echo Exiting; exit;; * ) echo "Please answer yes or no.";; esac @@ -812,7 +821,7 @@ case "$1" in update-restart) fn_stopserver fn_updateserver - fn_startserver;; + fn_startserver;; validate) fn_validateserver;; validate-restart) diff --git a/NoMoreRoomInHell/nmrihserver b/NoMoreRoomInHell/nmrihserver index 92d4b6a0c..4f0e701e7 100644 --- a/NoMoreRoomInHell/nmrihserver +++ b/NoMoreRoomInHell/nmrihserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://danielgibbs.co.uk -# Version: 050814 +# Version: 100914 #### Variables #### @@ -39,7 +39,7 @@ servicename="nmrih-server" gamename="No More Room in Hell" engine="source" -# Directorys +# Directories rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )" selfname="$0" lockselfname=$(echo ".${servicename}.lock") @@ -192,18 +192,26 @@ fn_debugserver(){ fn_rootcheck fn_syscheck fn_autoip +fn_distro +fn_uptime +fn_load fn_parms echo "" echo "${gamename} Debug" echo "============================" echo "" +echo -e "Distro: ${os}" +echo -e "Arch: ${arch}" +echo -e "Kernel: ${kernel}" +echo -e "Hostname: $HOSTNAME" +echo "" +echo "Start parameters:" +echo ${parms} +echo "" echo -e "Use for identifying server issues only!" echo -e "Press CTRL+c to drop out of debug mode" echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" echo "" -echo "Start parameters:" -echo "${parms} -debug -insecure" -echo "" while true; do read -p "Continue? [y/N]" yn case $yn in @@ -467,14 +475,15 @@ fn_monitorserver(){ fn_rootcheck fn_syscheck fn_autoip +fn_printdots "Monitoring ${servicename}: ${servername}" +sleep 1 if [ ! -f ${lockselfname} ]; then fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled" sleep 1 echo -en "\n" + echo "To enable monitor run ${selfname} start" exit fi -fn_printdots "Monitoring ${servicename}: ${servername}" -sleep 1 fn_scriptlog "Monitoring ${servername}" updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l) if [ "${updatecheck}" = "0" ]; then @@ -655,7 +664,7 @@ echo "Downloading libm.so.6" echo "=================================" sleep 1 cd "${filesdir}/srcds" -wget https://github.com/dgibbs64/linuxgameservers/raw/master/NoMoreRoomInHell/dependencies/libm.so.6 +wget -nv https://github.com/dgibbs64/linuxgameservers/raw/master/NoMoreRoomInHell/dependencies/libm.so.6 sleep 1 echo "" } @@ -745,7 +754,7 @@ fn_retryinstall(){ while true; do read -p "Retry install? [y/N]" yn case $yn in - [Yy]* ) fn_install;; + [Yy]* ) fn_install; exit;; [Nn]* ) echo Exiting; exit;; * ) echo "Please answer yes or no.";; esac @@ -840,7 +849,7 @@ case "$1" in update-restart) fn_stopserver fn_updateserver - fn_startserver;; + fn_startserver;; validate) fn_validateserver;; validate-restart) diff --git a/RedOrchestra/roserver b/RedOrchestra/roserver index c070e339a..802caee2b 100644 --- a/RedOrchestra/roserver +++ b/RedOrchestra/roserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://danielgibbs.co.uk -# Version: 050814 +# Version: 100914 #### Variables #### @@ -19,7 +19,7 @@ steampass="password" # Steam appid="223250" -# Directorys +# Directories rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )" selfname="$0" lockselfname=$(echo ".${servicename}.lock") @@ -178,18 +178,26 @@ fn_debugserver(){ fn_rootcheck fn_syscheck fn_autoip +fn_distro +fn_uptime +fn_load fn_parms echo "" echo "${gamename} Debug" echo "============================" echo "" -echo -e "Use for identifying server issues only!" -echo -e "Press CTRL+c to drop out of debug mode" -echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" +echo -e "Distro: ${os}" +echo -e "Arch: ${arch}" +echo -e "Kernel: ${kernel}" +echo -e "Hostname: $HOSTNAME" echo "" echo "Start parameters:" echo ${parms} echo "" +echo -e "Use for identifying server issues only!" +echo -e "Press CTRL+c to drop out of debug mode" +echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" +echo "" while true; do read -p "Continue? [y/N]" yn case $yn in @@ -453,14 +461,15 @@ fn_monitorserver(){ fn_rootcheck fn_syscheck fn_autoip +fn_printdots "Monitoring ${servicename}: ${servername}" +sleep 1 if [ ! -f ${lockselfname} ]; then fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled" sleep 1 echo -en "\n" + echo "To enable monitor run ${selfname} start" exit fi -fn_printdots "Monitoring ${servicename}: ${servername}" -sleep 1 fn_scriptlog "Monitoring ${servername}" updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l) if [ "${updatecheck}" = "0" ]; then @@ -778,7 +787,7 @@ fn_retryinstall(){ while true; do read -p "Retry install? [y/N]" yn case $yn in - [Yy]* ) fn_install;; + [Yy]* ) fn_install; exit;; [Nn]* ) echo Exiting; exit;; * ) echo "Please answer yes or no.";; esac @@ -872,7 +881,7 @@ case "$1" in update-restart) fn_stopserver fn_updateserver - fn_startserver;; + fn_startserver;; validate) fn_validateserver;; validate-restart) diff --git a/TeamFortress2/tf2server b/TeamFortress2/tf2server index 0e74f9497..3ae67c069 100644 --- a/TeamFortress2/tf2server +++ b/TeamFortress2/tf2server @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://danielgibbs.co.uk -# Version: 050814 +# Version: 100914 #### Variables #### @@ -39,7 +39,7 @@ servicename="tf2-server" gamename="Team Fortress 2" engine="source" -# Directorys +# Directories rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )" selfname="$0" lockselfname=$(echo ".${servicename}.lock") @@ -192,18 +192,26 @@ fn_debugserver(){ fn_rootcheck fn_syscheck fn_autoip +fn_distro +fn_uptime +fn_load fn_parms echo "" echo "${gamename} Debug" echo "============================" echo "" -echo -e "Use for identifying server issues only!" -echo -e "Press CTRL+c to drop out of debug mode" -echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" +echo -e "Distro: ${os}" +echo -e "Arch: ${arch}" +echo -e "Kernel: ${kernel}" +echo -e "Hostname: $HOSTNAME" echo "" echo "Start parameters:" echo ${parms} echo "" +echo -e "Use for identifying server issues only!" +echo -e "Press CTRL+c to drop out of debug mode" +echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" +echo "" while true; do read -p "Continue? [y/N]" yn case $yn in @@ -467,14 +475,15 @@ fn_monitorserver(){ fn_rootcheck fn_syscheck fn_autoip +fn_printdots "Monitoring ${servicename}: ${servername}" +sleep 1 if [ ! -f ${lockselfname} ]; then fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled" sleep 1 echo -en "\n" + echo "To enable monitor run ${selfname} start" exit fi -fn_printdots "Monitoring ${servicename}: ${servername}" -sleep 1 fn_scriptlog "Monitoring ${servername}" updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l) if [ "${updatecheck}" = "0" ]; then @@ -735,7 +744,7 @@ fn_retryinstall(){ while true; do read -p "Retry install? [y/N]" yn case $yn in - [Yy]* ) fn_install;; + [Yy]* ) fn_install; exit;; [Nn]* ) echo Exiting; exit;; * ) echo "Please answer yes or no.";; esac @@ -829,7 +838,7 @@ case "$1" in update-restart) fn_stopserver fn_updateserver - fn_startserver;; + fn_startserver;; validate) fn_validateserver;; validate-restart) diff --git a/TeamFortressClassic/tfcserver b/TeamFortressClassic/tfcserver index f7e29bd58..7c6273881 100644 --- a/TeamFortressClassic/tfcserver +++ b/TeamFortressClassic/tfcserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://danielgibbs.co.uk -# Version: 050814 +# Version: 100914 #### Variables #### @@ -38,7 +38,7 @@ servicename="tfc-server" gamename="Team Fortress Classic" engine="goldsource" -# Directorys +# Directories rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )" selfname="$0" lockselfname=$(echo ".${servicename}.lock") @@ -191,18 +191,26 @@ fn_debugserver(){ fn_rootcheck fn_syscheck fn_autoip +fn_distro +fn_uptime +fn_load fn_parms echo "" echo "${gamename} Debug" echo "============================" echo "" -echo -e "Use for identifying server issues only!" -echo -e "Press CTRL+c to drop out of debug mode" -echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" +echo -e "Distro: ${os}" +echo -e "Arch: ${arch}" +echo -e "Kernel: ${kernel}" +echo -e "Hostname: $HOSTNAME" echo "" echo "Start parameters:" echo ${parms} echo "" +echo -e "Use for identifying server issues only!" +echo -e "Press CTRL+c to drop out of debug mode" +echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" +echo "" while true; do read -p "Continue? [y/N]" yn case $yn in @@ -466,14 +474,15 @@ fn_monitorserver(){ fn_rootcheck fn_syscheck fn_autoip +fn_printdots "Monitoring ${servicename}: ${servername}" +sleep 1 if [ ! -f ${lockselfname} ]; then fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled" sleep 1 echo -en "\n" + echo "To enable monitor run ${selfname} start" exit fi -fn_printdots "Monitoring ${servicename}: ${servername}" -sleep 1 fn_scriptlog "Monitoring ${servername}" updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l) if [ "${updatecheck}" = "0" ]; then @@ -682,13 +691,12 @@ echo "" } fn_steaminstall(){ +echo "Installing ${gamename} Server" +echo "=================================" sleep 1 mkdir -pv "${filesdir}" cd "${rootdir}/steamcmd" STEAMEXE=steamcmd ./steamcmd.sh +login ${steamuser} ${steampass} +force_install_dir "${filesdir}" +app_update ${appid} validate +quit -} - -fn_success(){ echo "" echo "=================================" while true; do @@ -735,7 +743,7 @@ fn_retryinstall(){ while true; do read -p "Retry install? [y/N]" yn case $yn in - [Yy]* ) fn_install;; + [Yy]* ) fn_install; exit;; [Nn]* ) echo Exiting; exit;; * ) echo "Please answer yes or no.";; esac @@ -771,14 +779,10 @@ while true; do done fn_header fn_steamdl -echo "Installing ${gamename} Server" -echo "=================================" fn_steaminstall fn_steaminstall fn_steaminstall fn_steaminstall -fn_steaminstall -fn_success fn_steamfix fn_loginstall echo "Configuring ${gamename} Server" @@ -860,7 +864,7 @@ case "$1" in update-restart) fn_stopserver fn_updateserver - fn_startserver;; + fn_startserver;; validate) fn_validateserver;; validate-restart) diff --git a/UnrealTournament2004/ut2k4server b/UnrealTournament2004/ut2k4server index 6a5150cdf..3624d7af0 100644 --- a/UnrealTournament2004/ut2k4server +++ b/UnrealTournament2004/ut2k4server @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://danielgibbs.co.uk -# Version: 050814 +# Version: 100914 #### Variables #### @@ -12,7 +12,7 @@ emailnotification="off" email="email@example.com" -# Directorys +# Directories rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )" selfname="$0" lockselfname=$(echo ".${servicename}.lock") @@ -171,18 +171,26 @@ fn_debugserver(){ fn_rootcheck fn_syscheck fn_autoip +fn_distro +fn_uptime +fn_load fn_parms echo "" echo "${gamename} Debug" echo "============================" echo "" -echo -e "Use for identifying server issues only!" -echo -e "Press CTRL+c to drop out of debug mode" -echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" +echo -e "Distro: ${os}" +echo -e "Arch: ${arch}" +echo -e "Kernel: ${kernel}" +echo -e "Hostname: $HOSTNAME" echo "" echo "Start parameters:" echo ${parms} echo "" +echo -e "Use for identifying server issues only!" +echo -e "Press CTRL+c to drop out of debug mode" +echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" +echo "" while true; do read -p "Continue? [y/N]" yn case $yn in @@ -446,14 +454,15 @@ fn_monitorserver(){ fn_rootcheck fn_syscheck fn_autoip +fn_printdots "Monitoring ${servicename}: ${servername}" +sleep 1 if [ ! -f ${lockselfname} ]; then fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled" sleep 1 echo -en "\n" + echo "To enable monitor run ${selfname} start" exit fi -fn_printdots "Monitoring ${servicename}: ${servername}" -sleep 1 fn_scriptlog "Monitoring ${servername}" updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l) if [ "${updatecheck}" = "0" ]; then @@ -791,7 +800,7 @@ fn_retryinstall(){ while true; do read -p "Retry install? [y/N]" yn case $yn in - [Yy]* ) fn_install;; + [Yy]* ) fn_install; exit;; [Nn]* ) echo Exiting; exit;; * ) echo "Please answer yes or no.";; esac diff --git a/UnrealTournament99/ut99server b/UnrealTournament99/ut99server index b7e2570b2..2c452923a 100644 --- a/UnrealTournament99/ut99server +++ b/UnrealTournament99/ut99server @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://danielgibbs.co.uk -# Version: 050814 +# Version: 100914 #### Variables #### @@ -12,7 +12,7 @@ emailnotification="off" email="email@example.com" -# Directorys +# Directories rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )" selfname="$0" filesdir="${rootdir}/serverfiles" @@ -170,18 +170,26 @@ fn_debugserver(){ fn_rootcheck fn_syscheck fn_autoip +fn_distro +fn_uptime +fn_load fn_parms echo "" echo "${gamename} Debug" echo "============================" echo "" -echo -e "Use for identifying server issues only!" -echo -e "Press CTRL+c to drop out of debug mode" -echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" +echo -e "Distro: ${os}" +echo -e "Arch: ${arch}" +echo -e "Kernel: ${kernel}" +echo -e "Hostname: $HOSTNAME" echo "" echo "Start parameters:" echo ${parms} echo "" +echo -e "Use for identifying server issues only!" +echo -e "Press CTRL+c to drop out of debug mode" +echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" +echo "" while true; do read -p "Continue? [y/N]" yn case $yn in @@ -445,14 +453,15 @@ fn_monitorserver(){ fn_rootcheck fn_syscheck fn_autoip +fn_printdots "Monitoring ${servicename}: ${servername}" +sleep 1 if [ ! -f ${lockselfname} ]; then fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled" sleep 1 echo -en "\n" + echo "To enable monitor run ${selfname} start" exit fi -fn_printdots "Monitoring ${servicename}: ${servername}" -sleep 1 fn_scriptlog "Monitoring ${servername}" updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l) if [ "${updatecheck}" = "0" ]; then @@ -772,7 +781,7 @@ fn_retryinstall(){ while true; do read -p "Retry install? [y/N]" yn case $yn in - [Yy]* ) fn_install;; + [Yy]* ) fn_install; exit;; [Nn]* ) echo Exiting; exit;; * ) echo "Please answer yes or no.";; esac