Browse Source

100914 - Update debug and monitor

* Updated debug mode
* Monitor changes to monitor to clarify how to activate it
fixed  issue #156
pull/173/head
Daniel Gibbs 11 years ago
parent
commit
f8b462208b
  1. 2
      Arma3/arma3server
  2. 22
      BladeSymphony/bsserver
  3. 36
      CounterStrike/csserver
  4. 70
      CounterStrikeConditionZero/csczserver
  5. 26
      CounterStrikeGlobalOffensive/csgoserver
  6. 27
      CounterStrikeSource/cssserver
  7. 34
      DayOfDefeat/dodserver
  8. 27
      DayOfDefeatSource/dodsserver
  9. 26
      FistfulOfFrags/fofserver
  10. 29
      GarrysMod/gmodserver
  11. 25
      HalfLife2Deathmatch/hl2dmserver
  12. 36
      HalfLifeDeathmatchClassic/hldmcserver
  13. 33
      Insurgency/insserver
  14. 27
      KillingFloor/kfserver
  15. 28
      Left4Dead/l4dserver
  16. 27
      Left4Dead2/l4d2server
  17. 27
      NaturalSelection2/ns2server
  18. 29
      NoMoreRoomInHell/nmrihserver
  19. 27
      RedOrchestra/roserver
  20. 27
      TeamFortress2/tf2server
  21. 36
      TeamFortressClassic/tfcserver
  22. 25
      UnrealTournament2004/ut2k4server
  23. 25
      UnrealTournament99/ut99server

2
Arma3/arma3server

@ -832,7 +832,7 @@ case "$1" in
update-restart) update-restart)
fn_stopserver fn_stopserver
fn_updateserver fn_updateserver
fn_startserver;; fn_startserver;;
validate) validate)
fn_validateserver;; fn_validateserver;;
validate-restart) validate-restart)

22
BladeSymphony/bsserver

@ -3,7 +3,7 @@
# Server Management Script # Server Management Script
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://danielgibbs.co.uk # Website: http://danielgibbs.co.uk
# Version: 010914 # Version: 100914
#### Variables #### #### Variables ####
@ -39,7 +39,7 @@ servicename="bs-server"
gamename="Blade Symphony" gamename="Blade Symphony"
engine="source" engine="source"
# Directorys # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )" rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )"
selfname="$0" selfname="$0"
lockselfname=$(echo ".${servicename}.lock") lockselfname=$(echo ".${servicename}.lock")
@ -192,18 +192,26 @@ fn_debugserver(){
fn_rootcheck fn_rootcheck
fn_syscheck fn_syscheck
fn_autoip fn_autoip
fn_distro
fn_uptime
fn_load
fn_parms fn_parms
echo "" echo ""
echo "${gamename} Debug" echo "${gamename} Debug"
echo "============================" echo "============================"
echo "" echo ""
echo -e "Use for identifying server issues only!" echo -e "Distro: ${os}"
echo -e "Press CTRL+c to drop out of debug mode" echo -e "Arch: ${arch}"
echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" echo -e "Kernel: ${kernel}"
echo -e "Hostname: $HOSTNAME"
echo "" echo ""
echo "Start parameters:" echo "Start parameters:"
echo ${parms} echo ${parms}
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 ""
while true; do while true; do
read -p "Continue? [y/N]" yn read -p "Continue? [y/N]" yn
case $yn in case $yn in
@ -745,7 +753,7 @@ fn_retryinstall(){
while true; do while true; do
read -p "Retry install? [y/N]" yn read -p "Retry install? [y/N]" yn
case $yn in case $yn in
[Yy]* ) fn_install;; [Yy]* ) fn_install; exit;;
[Nn]* ) echo Exiting; exit;; [Nn]* ) echo Exiting; exit;;
* ) echo "Please answer yes or no.";; * ) echo "Please answer yes or no.";;
esac esac
@ -840,7 +848,7 @@ case "$1" in
update-restart) update-restart)
fn_stopserver fn_stopserver
fn_updateserver fn_updateserver
fn_startserver;; fn_startserver;;
validate) validate)
fn_validateserver;; fn_validateserver;;
validate-restart) validate-restart)

36
CounterStrike/csserver

@ -3,7 +3,7 @@
# Server Management Script # Server Management Script
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://danielgibbs.co.uk # Website: http://danielgibbs.co.uk
# Version: 050814 # Version: 100914
#### Variables #### #### Variables ####
@ -38,7 +38,7 @@ servicename="cs-server"
gamename="Counter Strike 1.6" gamename="Counter Strike 1.6"
engine="goldsource" engine="goldsource"
# Directorys # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )" rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )"
selfname="$0" selfname="$0"
lockselfname=$(echo ".${servicename}.lock") lockselfname=$(echo ".${servicename}.lock")
@ -191,18 +191,26 @@ fn_debugserver(){
fn_rootcheck fn_rootcheck
fn_syscheck fn_syscheck
fn_autoip fn_autoip
fn_distro
fn_uptime
fn_load
fn_parms fn_parms
echo "" echo ""
echo "${gamename} Debug" echo "${gamename} Debug"
echo "============================" echo "============================"
echo "" echo ""
echo -e "Use for identifying server issues only!" echo -e "Distro: ${os}"
echo -e "Press CTRL+c to drop out of debug mode" echo -e "Arch: ${arch}"
echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" echo -e "Kernel: ${kernel}"
echo -e "Hostname: $HOSTNAME"
echo "" echo ""
echo "Start parameters:" echo "Start parameters:"
echo ${parms} echo ${parms}
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 ""
while true; do while true; do
read -p "Continue? [y/N]" yn read -p "Continue? [y/N]" yn
case $yn in case $yn in
@ -466,14 +474,15 @@ fn_monitorserver(){
fn_rootcheck fn_rootcheck
fn_syscheck fn_syscheck
fn_autoip fn_autoip
fn_printdots "Monitoring ${servicename}: ${servername}"
sleep 1
if [ ! -f ${lockselfname} ]; then if [ ! -f ${lockselfname} ]; then
fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled" fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled"
sleep 1 sleep 1
echo -en "\n" echo -en "\n"
echo "To enable monitor run ${selfname} start"
exit exit
fi fi
fn_printdots "Monitoring ${servicename}: ${servername}"
sleep 1
fn_scriptlog "Monitoring ${servername}" fn_scriptlog "Monitoring ${servername}"
updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l) updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l)
if [ "${updatecheck}" = "0" ]; then if [ "${updatecheck}" = "0" ]; then
@ -682,13 +691,12 @@ echo ""
} }
fn_steaminstall(){ fn_steaminstall(){
echo "Installing ${gamename} Server"
echo "================================="
sleep 1 sleep 1
mkdir -pv "${filesdir}" mkdir -pv "${filesdir}"
cd "${rootdir}/steamcmd" cd "${rootdir}/steamcmd"
STEAMEXE=steamcmd ./steamcmd.sh +login ${steamuser} ${steampass} +force_install_dir "${filesdir}" +app_update ${appid} validate +quit STEAMEXE=steamcmd ./steamcmd.sh +login ${steamuser} ${steampass} +force_install_dir "${filesdir}" +app_update ${appid} validate +quit
}
fn_success(){
echo "" echo ""
echo "=================================" echo "================================="
while true; do while true; do
@ -735,7 +743,7 @@ fn_retryinstall(){
while true; do while true; do
read -p "Retry install? [y/N]" yn read -p "Retry install? [y/N]" yn
case $yn in case $yn in
[Yy]* ) fn_install;; [Yy]* ) fn_install; exit;;
[Nn]* ) echo Exiting; exit;; [Nn]* ) echo Exiting; exit;;
* ) echo "Please answer yes or no.";; * ) echo "Please answer yes or no.";;
esac esac
@ -771,12 +779,10 @@ while true; do
done done
fn_header fn_header
fn_steamdl fn_steamdl
echo "Installing ${gamename} Server"
echo "================================="
fn_steaminstall fn_steaminstall
fn_steaminstall fn_steaminstall
fn_steaminstall fn_steaminstall
fn_success fn_steaminstall
fn_steamfix fn_steamfix
fn_loginstall fn_loginstall
echo "Configuring ${gamename} Server" echo "Configuring ${gamename} Server"
@ -858,7 +864,7 @@ case "$1" in
update-restart) update-restart)
fn_stopserver fn_stopserver
fn_updateserver fn_updateserver
fn_startserver;; fn_startserver;;
validate) validate)
fn_validateserver;; fn_validateserver;;
validate-restart) validate-restart)

70
CounterStrikeConditionZero/csczserver

@ -3,7 +3,7 @@
# Server Management Script # Server Management Script
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://danielgibbs.co.uk # Website: http://danielgibbs.co.uk
# Version: 050814 # Version: 100914
#### Variables #### #### Variables ####
@ -38,7 +38,7 @@ servicename="cscz-server"
gamename="Counter Strike: Condition Zero" gamename="Counter Strike: Condition Zero"
engine="goldsource" engine="goldsource"
# Directorys # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )" rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )"
selfname="$0" selfname="$0"
lockselfname=$(echo ".${servicename}.lock") lockselfname=$(echo ".${servicename}.lock")
@ -191,18 +191,26 @@ fn_debugserver(){
fn_rootcheck fn_rootcheck
fn_syscheck fn_syscheck
fn_autoip fn_autoip
fn_distro
fn_uptime
fn_load
fn_parms fn_parms
echo "" echo ""
echo "${gamename} Debug" echo "${gamename} Debug"
echo "============================" echo "============================"
echo "" echo ""
echo -e "Use for identifying server issues only!" echo -e "Distro: ${os}"
echo -e "Press CTRL+c to drop out of debug mode" echo -e "Arch: ${arch}"
echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" echo -e "Kernel: ${kernel}"
echo -e "Hostname: $HOSTNAME"
echo "" echo ""
echo "Start parameters:" echo "Start parameters:"
echo ${parms} echo ${parms}
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 ""
while true; do while true; do
read -p "Continue? [y/N]" yn read -p "Continue? [y/N]" yn
case $yn in case $yn in
@ -466,14 +474,15 @@ fn_monitorserver(){
fn_rootcheck fn_rootcheck
fn_syscheck fn_syscheck
fn_autoip fn_autoip
fn_printdots "Monitoring ${servicename}: ${servername}"
sleep 1
if [ ! -f ${lockselfname} ]; then if [ ! -f ${lockselfname} ]; then
fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled" fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled"
sleep 1 sleep 1
echo -en "\n" echo -en "\n"
echo "To enable monitor run ${selfname} start"
exit exit
fi fi
fn_printdots "Monitoring ${servicename}: ${servername}"
sleep 1
fn_scriptlog "Monitoring ${servername}" fn_scriptlog "Monitoring ${servername}"
updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l) updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l)
if [ "${updatecheck}" = "0" ]; then if [ "${updatecheck}" = "0" ]; then
@ -649,33 +658,6 @@ echo ""
## Installer ## 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(){ fn_header(){
clear clear
echo "=================================" echo "================================="
@ -709,13 +691,12 @@ echo ""
} }
fn_steaminstall(){ fn_steaminstall(){
echo "Installing ${gamename} Server"
echo "================================="
sleep 1 sleep 1
mkdir -pv "${filesdir}" mkdir -pv "${filesdir}"
cd "${rootdir}/steamcmd" cd "${rootdir}/steamcmd"
STEAMEXE=steamcmd ./steamcmd.sh +login ${steamuser} ${steampass} +force_install_dir "${filesdir}" +app_update ${appid} validate +quit STEAMEXE=steamcmd ./steamcmd.sh +login ${steamuser} ${steampass} +force_install_dir "${filesdir}" +app_update ${appid} validate +quit
}
fn_success(){
echo "" echo ""
echo "=================================" echo "================================="
while true; do while true; do
@ -762,7 +743,7 @@ fn_retryinstall(){
while true; do while true; do
read -p "Retry install? [y/N]" yn read -p "Retry install? [y/N]" yn
case $yn in case $yn in
[Yy]* ) fn_install;; [Yy]* ) fn_install; exit;;
[Nn]* ) echo Exiting; exit;; [Nn]* ) echo Exiting; exit;;
* ) echo "Please answer yes or no.";; * ) echo "Please answer yes or no.";;
esac esac
@ -798,20 +779,7 @@ while true; do
done done
fn_header fn_header
fn_steamdl 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_steaminstall
fn_success
fn_steamfix fn_steamfix
fn_loginstall fn_loginstall
echo "Configuring ${gamename} Server" echo "Configuring ${gamename} Server"

26
CounterStrikeGlobalOffensive/csgoserver

@ -3,7 +3,7 @@
# Server Management Script # Server Management Script
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://danielgibbs.co.uk # Website: http://danielgibbs.co.uk
# Version: 050814 # Version: 100914
#### Variables #### #### Variables ####
@ -56,7 +56,7 @@ servicename="csgo-server"
gamename="Counter Strike: Global Offensive" gamename="Counter Strike: Global Offensive"
engine="source" engine="source"
# Directorys # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )" rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )"
selfname="$0" selfname="$0"
lockselfname=$(echo ".${servicename}.lock") lockselfname=$(echo ".${servicename}.lock")
@ -209,19 +209,26 @@ fn_debugserver(){
fn_rootcheck fn_rootcheck
fn_syscheck fn_syscheck
fn_autoip fn_autoip
fn_csgoappidfix fn_distro
fn_uptime
fn_load
fn_parms fn_parms
echo "" echo ""
echo "${gamename} Debug" echo "${gamename} Debug"
echo "============================" echo "============================"
echo "" echo ""
echo -e "Use for identifying server issues only!" echo -e "Distro: ${os}"
echo -e "Press CTRL+c to drop out of debug mode" echo -e "Arch: ${arch}"
echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" echo -e "Kernel: ${kernel}"
echo -e "Hostname: $HOSTNAME"
echo "" echo ""
echo "Start parameters:" echo "Start parameters:"
echo ${parms} echo ${parms}
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 ""
while true; do while true; do
read -p "Continue? [y/N]" yn read -p "Continue? [y/N]" yn
case $yn in case $yn in
@ -485,14 +492,15 @@ fn_monitorserver(){
fn_rootcheck fn_rootcheck
fn_syscheck fn_syscheck
fn_autoip fn_autoip
fn_printdots "Monitoring ${servicename}: ${servername}"
sleep 1
if [ ! -f ${lockselfname} ]; then if [ ! -f ${lockselfname} ]; then
fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled" fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled"
sleep 1 sleep 1
echo -en "\n" echo -en "\n"
echo "To enable monitor run ${selfname} start"
exit exit
fi fi
fn_printdots "Monitoring ${servicename}: ${servername}"
sleep 1
fn_scriptlog "Monitoring ${servername}" fn_scriptlog "Monitoring ${servername}"
updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l) updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l)
if [ "${updatecheck}" = "0" ]; then if [ "${updatecheck}" = "0" ]; then
@ -765,7 +773,7 @@ fn_retryinstall(){
while true; do while true; do
read -p "Retry install? [y/N]" yn read -p "Retry install? [y/N]" yn
case $yn in case $yn in
[Yy]* ) fn_install;; [Yy]* ) fn_install; exit;;
[Nn]* ) echo Exiting; exit;; [Nn]* ) echo Exiting; exit;;
* ) echo "Please answer yes or no.";; * ) echo "Please answer yes or no.";;
esac esac

27
CounterStrikeSource/cssserver

@ -3,7 +3,7 @@
# Server Management Script # Server Management Script
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://danielgibbs.co.uk # Website: http://danielgibbs.co.uk
# Version: 050814 # Version: 100914
#### Variables #### #### Variables ####
@ -39,7 +39,7 @@ servicename="css-server"
gamename="Counter Strike: Source" gamename="Counter Strike: Source"
engine="source" engine="source"
# Directorys # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )" rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )"
selfname="$0" selfname="$0"
lockselfname=$(echo ".${servicename}.lock") lockselfname=$(echo ".${servicename}.lock")
@ -192,18 +192,26 @@ fn_debugserver(){
fn_rootcheck fn_rootcheck
fn_syscheck fn_syscheck
fn_autoip fn_autoip
fn_distro
fn_uptime
fn_load
fn_parms fn_parms
echo "" echo ""
echo "${gamename} Debug" echo "${gamename} Debug"
echo "============================" echo "============================"
echo "" echo ""
echo -e "Use for identifying server issues only!" echo -e "Distro: ${os}"
echo -e "Press CTRL+c to drop out of debug mode" echo -e "Arch: ${arch}"
echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" echo -e "Kernel: ${kernel}"
echo -e "Hostname: $HOSTNAME"
echo "" echo ""
echo "Start parameters:" echo "Start parameters:"
echo ${parms} echo ${parms}
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 ""
while true; do while true; do
read -p "Continue? [y/N]" yn read -p "Continue? [y/N]" yn
case $yn in case $yn in
@ -467,14 +475,15 @@ fn_monitorserver(){
fn_rootcheck fn_rootcheck
fn_syscheck fn_syscheck
fn_autoip fn_autoip
fn_printdots "Monitoring ${servicename}: ${servername}"
sleep 1
if [ ! -f ${lockselfname} ]; then if [ ! -f ${lockselfname} ]; then
fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled" fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled"
sleep 1 sleep 1
echo -en "\n" echo -en "\n"
echo "To enable monitor run ${selfname} start"
exit exit
fi fi
fn_printdots "Monitoring ${servicename}: ${servername}"
sleep 1
fn_scriptlog "Monitoring ${servername}" fn_scriptlog "Monitoring ${servername}"
updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l) updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l)
if [ "${updatecheck}" = "0" ]; then if [ "${updatecheck}" = "0" ]; then
@ -735,7 +744,7 @@ fn_retryinstall(){
while true; do while true; do
read -p "Retry install? [y/N]" yn read -p "Retry install? [y/N]" yn
case $yn in case $yn in
[Yy]* ) fn_install;; [Yy]* ) fn_install; exit;;
[Nn]* ) echo Exiting; exit;; [Nn]* ) echo Exiting; exit;;
* ) echo "Please answer yes or no.";; * ) echo "Please answer yes or no.";;
esac esac
@ -829,7 +838,7 @@ case "$1" in
update-restart) update-restart)
fn_stopserver fn_stopserver
fn_updateserver fn_updateserver
fn_startserver;; fn_startserver;;
validate) validate)
fn_validateserver;; fn_validateserver;;
validate-restart) validate-restart)

34
DayOfDefeat/dodserver

@ -3,7 +3,7 @@
# Server Management Script # Server Management Script
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://danielgibbs.co.uk # Website: http://danielgibbs.co.uk
# Version: 050814 # Version: 100914
#### Variables #### #### Variables ####
@ -38,7 +38,7 @@ servicename="dod-server"
gamename="Day of Defeat" gamename="Day of Defeat"
engine="goldsource" engine="goldsource"
# Directorys # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )" rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )"
selfname="$0" selfname="$0"
lockselfname=$(echo ".${servicename}.lock") lockselfname=$(echo ".${servicename}.lock")
@ -191,18 +191,26 @@ fn_debugserver(){
fn_rootcheck fn_rootcheck
fn_syscheck fn_syscheck
fn_autoip fn_autoip
fn_distro
fn_uptime
fn_load
fn_parms fn_parms
echo "" echo ""
echo "${gamename} Debug" echo "${gamename} Debug"
echo "============================" echo "============================"
echo "" echo ""
echo -e "Use for identifying server issues only!" echo -e "Distro: ${os}"
echo -e "Press CTRL+c to drop out of debug mode" echo -e "Arch: ${arch}"
echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" echo -e "Kernel: ${kernel}"
echo -e "Hostname: $HOSTNAME"
echo "" echo ""
echo "Start parameters:" echo "Start parameters:"
echo ${parms} echo ${parms}
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 ""
while true; do while true; do
read -p "Continue? [y/N]" yn read -p "Continue? [y/N]" yn
case $yn in case $yn in
@ -466,14 +474,15 @@ fn_monitorserver(){
fn_rootcheck fn_rootcheck
fn_syscheck fn_syscheck
fn_autoip fn_autoip
fn_printdots "Monitoring ${servicename}: ${servername}"
sleep 1
if [ ! -f ${lockselfname} ]; then if [ ! -f ${lockselfname} ]; then
fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled" fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled"
sleep 1 sleep 1
echo -en "\n" echo -en "\n"
echo "To enable monitor run ${selfname} start"
exit exit
fi fi
fn_printdots "Monitoring ${servicename}: ${servername}"
sleep 1
fn_scriptlog "Monitoring ${servername}" fn_scriptlog "Monitoring ${servername}"
updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l) updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l)
if [ "${updatecheck}" = "0" ]; then if [ "${updatecheck}" = "0" ]; then
@ -682,13 +691,12 @@ echo ""
} }
fn_steaminstall(){ fn_steaminstall(){
echo "Installing ${gamename} Server"
echo "================================="
sleep 1 sleep 1
mkdir -pv "${filesdir}" mkdir -pv "${filesdir}"
cd "${rootdir}/steamcmd" cd "${rootdir}/steamcmd"
STEAMEXE=steamcmd ./steamcmd.sh +login ${steamuser} ${steampass} +force_install_dir "${filesdir}" +app_update ${appid} validate +quit STEAMEXE=steamcmd ./steamcmd.sh +login ${steamuser} ${steampass} +force_install_dir "${filesdir}" +app_update ${appid} validate +quit
}
fn_success(){
echo "" echo ""
echo "=================================" echo "================================="
while true; do while true; do
@ -735,7 +743,7 @@ fn_retryinstall(){
while true; do while true; do
read -p "Retry install? [y/N]" yn read -p "Retry install? [y/N]" yn
case $yn in case $yn in
[Yy]* ) fn_install;; [Yy]* ) fn_install; exit;;
[Nn]* ) echo Exiting; exit;; [Nn]* ) echo Exiting; exit;;
* ) echo "Please answer yes or no.";; * ) echo "Please answer yes or no.";;
esac esac
@ -771,14 +779,10 @@ while true; do
done done
fn_header fn_header
fn_steamdl fn_steamdl
echo "Installing ${gamename} Server"
echo "================================="
fn_steaminstall
fn_steaminstall fn_steaminstall
fn_steaminstall fn_steaminstall
fn_steaminstall fn_steaminstall
fn_steaminstall fn_steaminstall
fn_success
fn_steamfix fn_steamfix
fn_loginstall fn_loginstall
echo "Configuring ${gamename} Server" echo "Configuring ${gamename} Server"

27
DayOfDefeatSource/dodsserver

@ -3,7 +3,7 @@
# Server Management Script # Server Management Script
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://danielgibbs.co.uk # Website: http://danielgibbs.co.uk
# Version: 050814 # Version: 100914
#### Variables #### #### Variables ####
@ -39,7 +39,7 @@ servicename="dods-server"
gamename="Day of Defeat: Source" gamename="Day of Defeat: Source"
engine="source" engine="source"
# Directorys # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )" rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )"
selfname="$0" selfname="$0"
lockselfname=$(echo ".${servicename}.lock") lockselfname=$(echo ".${servicename}.lock")
@ -192,18 +192,26 @@ fn_debugserver(){
fn_rootcheck fn_rootcheck
fn_syscheck fn_syscheck
fn_autoip fn_autoip
fn_distro
fn_uptime
fn_load
fn_parms fn_parms
echo "" echo ""
echo "${gamename} Debug" echo "${gamename} Debug"
echo "============================" echo "============================"
echo "" echo ""
echo -e "Use for identifying server issues only!" echo -e "Distro: ${os}"
echo -e "Press CTRL+c to drop out of debug mode" echo -e "Arch: ${arch}"
echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" echo -e "Kernel: ${kernel}"
echo -e "Hostname: $HOSTNAME"
echo "" echo ""
echo "Start parameters:" echo "Start parameters:"
echo ${parms} echo ${parms}
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 ""
while true; do while true; do
read -p "Continue? [y/N]" yn read -p "Continue? [y/N]" yn
case $yn in case $yn in
@ -467,14 +475,15 @@ fn_monitorserver(){
fn_rootcheck fn_rootcheck
fn_syscheck fn_syscheck
fn_autoip fn_autoip
fn_printdots "Monitoring ${servicename}: ${servername}"
sleep 1
if [ ! -f ${lockselfname} ]; then if [ ! -f ${lockselfname} ]; then
fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled" fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled"
sleep 1 sleep 1
echo -en "\n" echo -en "\n"
echo "To enable monitor run ${selfname} start"
exit exit
fi fi
fn_printdots "Monitoring ${servicename}: ${servername}"
sleep 1
fn_scriptlog "Monitoring ${servername}" fn_scriptlog "Monitoring ${servername}"
updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l) updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l)
if [ "${updatecheck}" = "0" ]; then if [ "${updatecheck}" = "0" ]; then
@ -735,7 +744,7 @@ fn_retryinstall(){
while true; do while true; do
read -p "Retry install? [y/N]" yn read -p "Retry install? [y/N]" yn
case $yn in case $yn in
[Yy]* ) fn_install;; [Yy]* ) fn_install; exit;;
[Nn]* ) echo Exiting; exit;; [Nn]* ) echo Exiting; exit;;
* ) echo "Please answer yes or no.";; * ) echo "Please answer yes or no.";;
esac esac
@ -829,7 +838,7 @@ case "$1" in
update-restart) update-restart)
fn_stopserver fn_stopserver
fn_updateserver fn_updateserver
fn_startserver;; fn_startserver;;
validate) validate)
fn_validateserver;; fn_validateserver;;
validate-restart) validate-restart)

26
FistfulOfFrags/fofserver

@ -3,7 +3,7 @@
# Server Management Script # Server Management Script
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://danielgibbs.co.uk # Website: http://danielgibbs.co.uk
# Version: 050814 # Version: 100914
#### Variables #### #### Variables ####
@ -39,7 +39,7 @@ servicename="fof-server"
gamename="Fistful of Frags" gamename="Fistful of Frags"
engine="source" engine="source"
# Directorys # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )" rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )"
selfname="$0" selfname="$0"
lockselfname=$(echo ".${servicename}.lock") lockselfname=$(echo ".${servicename}.lock")
@ -192,11 +192,22 @@ fn_debugserver(){
fn_rootcheck fn_rootcheck
fn_syscheck fn_syscheck
fn_autoip fn_autoip
fn_distro
fn_uptime
fn_load
fn_parms fn_parms
echo "" echo ""
echo "${gamename} Debug" echo "${gamename} Debug"
echo "============================" echo "============================"
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 "Use for identifying server issues only!"
echo -e "Press CTRL+c to drop out of debug mode" 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 "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped"
@ -467,14 +478,15 @@ fn_monitorserver(){
fn_rootcheck fn_rootcheck
fn_syscheck fn_syscheck
fn_autoip fn_autoip
fn_printdots "Monitoring ${servicename}: ${servername}"
sleep 1
if [ ! -f ${lockselfname} ]; then if [ ! -f ${lockselfname} ]; then
fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled" fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled"
sleep 1 sleep 1
echo -en "\n" echo -en "\n"
echo "To enable monitor run ${selfname} start"
exit exit
fi fi
fn_printdots "Monitoring ${servicename}: ${servername}"
sleep 1
fn_scriptlog "Monitoring ${servername}" fn_scriptlog "Monitoring ${servername}"
updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l) updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l)
if [ "${updatecheck}" = "0" ]; then if [ "${updatecheck}" = "0" ]; then
@ -654,7 +666,7 @@ fn_fofdeps(){
echo "Downloading libm.so.6" echo "Downloading libm.so.6"
echo "=================================" echo "================================="
cd "${filesdir}" 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 sleep 1
echo "" echo ""
} }
@ -744,7 +756,7 @@ fn_retryinstall(){
while true; do while true; do
read -p "Retry install? [y/N]" yn read -p "Retry install? [y/N]" yn
case $yn in case $yn in
[Yy]* ) fn_install;; [Yy]* ) fn_install; exit;;
[Nn]* ) echo Exiting; exit;; [Nn]* ) echo Exiting; exit;;
* ) echo "Please answer yes or no.";; * ) echo "Please answer yes or no.";;
esac esac
@ -873,7 +885,7 @@ case "$1" in
update-restart) update-restart)
fn_stopserver fn_stopserver
fn_updateserver fn_updateserver
fn_startserver;; fn_startserver;;
validate) validate)
fn_validateserver;; fn_validateserver;;
validate-restart) validate-restart)

29
GarrysMod/gmodserver

@ -3,7 +3,7 @@
# Server Management Script # Server Management Script
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://danielgibbs.co.uk # Website: http://danielgibbs.co.uk
# Version: 240814 # Version: 100914
#### Variables #### #### Variables ####
@ -44,7 +44,7 @@ servicename="gmod-server"
gamename="Garrys's Mod" gamename="Garrys's Mod"
engine="source" engine="source"
# Directorys # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )" rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )"
selfname="$0" selfname="$0"
lockselfname=$(echo ".${servicename}.lock") lockselfname=$(echo ".${servicename}.lock")
@ -197,18 +197,26 @@ fn_debugserver(){
fn_rootcheck fn_rootcheck
fn_syscheck fn_syscheck
fn_autoip fn_autoip
fn_distro
fn_uptime
fn_load
fn_parms fn_parms
echo "" echo ""
echo "${gamename} Debug" echo "${gamename} Debug"
echo "============================" echo "============================"
echo "" echo ""
echo -e "Use for identifying server issues only!" echo -e "Distro: ${os}"
echo -e "Press CTRL+c to drop out of debug mode" echo -e "Arch: ${arch}"
echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" echo -e "Kernel: ${kernel}"
echo -e "Hostname: $HOSTNAME"
echo "" echo ""
echo "Start parameters:" echo "Start parameters:"
echo ${parms} echo ${parms}
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 ""
while true; do while true; do
read -p "Continue? [y/N]" yn read -p "Continue? [y/N]" yn
case $yn in case $yn in
@ -472,14 +480,15 @@ fn_monitorserver(){
fn_rootcheck fn_rootcheck
fn_syscheck fn_syscheck
fn_autoip fn_autoip
fn_printdots "Monitoring ${servicename}: ${servername}"
sleep 1
if [ ! -f ${lockselfname} ]; then if [ ! -f ${lockselfname} ]; then
fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled" fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled"
sleep 1 sleep 1
echo -en "\n" echo -en "\n"
echo "To enable monitor run ${selfname} start"
exit exit
fi fi
fn_printdots "Monitoring ${servicename}: ${servername}"
sleep 1
fn_scriptlog "Monitoring ${servername}" fn_scriptlog "Monitoring ${servername}"
updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l) updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l)
if [ "${updatecheck}" = "0" ]; then if [ "${updatecheck}" = "0" ]; then
@ -760,7 +769,7 @@ fn_retryinstall(){
while true; do while true; do
read -p "Retry install? [y/N]" yn read -p "Retry install? [y/N]" yn
case $yn in case $yn in
[Yy]* ) fn_install;; [Yy]* ) fn_install; exit;;
[Nn]* ) echo Exiting; exit;; [Nn]* ) echo Exiting; exit;;
* ) echo "Please answer yes or no.";; * ) echo "Please answer yes or no.";;
esac esac
@ -925,7 +934,7 @@ case "$1" in
update-restart) update-restart)
fn_stopserver fn_stopserver
fn_updateserver fn_updateserver
fn_startserver;; fn_startserver;;
validate) validate)
fn_validateserver;; fn_validateserver;;
validate-restart) 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}" echo "Usage: $0 {start|stop|restart|update|update-restart|validate|validate-restart|monitor|email-test|details|backup|console|debug|install}"
exit 1;; exit 1;;
esac esac
exit exit

25
HalfLife2Deathmatch/hl2dmserver

@ -3,7 +3,7 @@
# Server Management Script # Server Management Script
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://danielgibbs.co.uk # Website: http://danielgibbs.co.uk
# Version: 050814 # Version: 100914
#### Variables #### #### Variables ####
@ -39,7 +39,7 @@ servicename="hl2dm-server"
gamename="Half Life 2: Deathmatch" gamename="Half Life 2: Deathmatch"
engine="source" engine="source"
# Directorys # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )" rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )"
selfname="$0" selfname="$0"
lockselfname=$(echo ".${servicename}.lock") lockselfname=$(echo ".${servicename}.lock")
@ -192,18 +192,26 @@ fn_debugserver(){
fn_rootcheck fn_rootcheck
fn_syscheck fn_syscheck
fn_autoip fn_autoip
fn_distro
fn_uptime
fn_load
fn_parms fn_parms
echo "" echo ""
echo "${gamename} Debug" echo "${gamename} Debug"
echo "============================" echo "============================"
echo "" echo ""
echo -e "Use for identifying server issues only!" echo -e "Distro: ${os}"
echo -e "Press CTRL+c to drop out of debug mode" echo -e "Arch: ${arch}"
echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" echo -e "Kernel: ${kernel}"
echo -e "Hostname: $HOSTNAME"
echo "" echo ""
echo "Start parameters:" echo "Start parameters:"
echo ${parms} echo ${parms}
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 ""
while true; do while true; do
read -p "Continue? [y/N]" yn read -p "Continue? [y/N]" yn
case $yn in case $yn in
@ -467,14 +475,15 @@ fn_monitorserver(){
fn_rootcheck fn_rootcheck
fn_syscheck fn_syscheck
fn_autoip fn_autoip
fn_printdots "Monitoring ${servicename}: ${servername}"
sleep 1
if [ ! -f ${lockselfname} ]; then if [ ! -f ${lockselfname} ]; then
fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled" fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled"
sleep 1 sleep 1
echo -en "\n" echo -en "\n"
echo "To enable monitor run ${selfname} start"
exit exit
fi fi
fn_printdots "Monitoring ${servicename}: ${servername}"
sleep 1
fn_scriptlog "Monitoring ${servername}" fn_scriptlog "Monitoring ${servername}"
updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l) updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l)
if [ "${updatecheck}" = "0" ]; then if [ "${updatecheck}" = "0" ]; then
@ -735,7 +744,7 @@ fn_retryinstall(){
while true; do while true; do
read -p "Retry install? [y/N]" yn read -p "Retry install? [y/N]" yn
case $yn in case $yn in
[Yy]* ) fn_install;; [Yy]* ) fn_install; exit;;
[Nn]* ) echo Exiting; exit;; [Nn]* ) echo Exiting; exit;;
* ) echo "Please answer yes or no.";; * ) echo "Please answer yes or no.";;
esac esac

36
HalfLifeDeathmatchClassic/hldmcserver

@ -3,7 +3,7 @@
# Server Management Script # Server Management Script
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://danielgibbs.co.uk # Website: http://danielgibbs.co.uk
# Version: 050814 # Version: 100914
#### Variables #### #### Variables ####
@ -38,7 +38,7 @@ servicename="hldmc-server"
gamename="Half Life: Deathmatch Classic" gamename="Half Life: Deathmatch Classic"
engine="goldsource" engine="goldsource"
# Directorys # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )" rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )"
selfname="$0" selfname="$0"
lockselfname=$(echo ".${servicename}.lock") lockselfname=$(echo ".${servicename}.lock")
@ -191,18 +191,26 @@ fn_debugserver(){
fn_rootcheck fn_rootcheck
fn_syscheck fn_syscheck
fn_autoip fn_autoip
fn_distro
fn_uptime
fn_load
fn_parms fn_parms
echo "" echo ""
echo "${gamename} Debug" echo "${gamename} Debug"
echo "============================" echo "============================"
echo "" echo ""
echo -e "Use for identifying server issues only!" echo -e "Distro: ${os}"
echo -e "Press CTRL+c to drop out of debug mode" echo -e "Arch: ${arch}"
echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" echo -e "Kernel: ${kernel}"
echo -e "Hostname: $HOSTNAME"
echo "" echo ""
echo "Start parameters:" echo "Start parameters:"
echo ${parms} echo ${parms}
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 ""
while true; do while true; do
read -p "Continue? [y/N]" yn read -p "Continue? [y/N]" yn
case $yn in case $yn in
@ -466,14 +474,15 @@ fn_monitorserver(){
fn_rootcheck fn_rootcheck
fn_syscheck fn_syscheck
fn_autoip fn_autoip
fn_printdots "Monitoring ${servicename}: ${servername}"
sleep 1
if [ ! -f ${lockselfname} ]; then if [ ! -f ${lockselfname} ]; then
fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled" fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled"
sleep 1 sleep 1
echo -en "\n" echo -en "\n"
echo "To enable monitor run ${selfname} start"
exit exit
fi fi
fn_printdots "Monitoring ${servicename}: ${servername}"
sleep 1
fn_scriptlog "Monitoring ${servername}" fn_scriptlog "Monitoring ${servername}"
updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l) updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l)
if [ "${updatecheck}" = "0" ]; then if [ "${updatecheck}" = "0" ]; then
@ -682,13 +691,12 @@ echo ""
} }
fn_steaminstall(){ fn_steaminstall(){
echo "Installing ${gamename} Server"
echo "================================="
sleep 1 sleep 1
mkdir -pv "${filesdir}" mkdir -pv "${filesdir}"
cd "${rootdir}/steamcmd" cd "${rootdir}/steamcmd"
STEAMEXE=steamcmd ./steamcmd.sh +login ${steamuser} ${steampass} +force_install_dir "${filesdir}" +app_update ${appid} validate +quit STEAMEXE=steamcmd ./steamcmd.sh +login ${steamuser} ${steampass} +force_install_dir "${filesdir}" +app_update ${appid} validate +quit
}
fn_success(){
echo "" echo ""
echo "=================================" echo "================================="
while true; do while true; do
@ -735,7 +743,7 @@ fn_retryinstall(){
while true; do while true; do
read -p "Retry install? [y/N]" yn read -p "Retry install? [y/N]" yn
case $yn in case $yn in
[Yy]* ) fn_install;; [Yy]* ) fn_install; exit;;
[Nn]* ) echo Exiting; exit;; [Nn]* ) echo Exiting; exit;;
* ) echo "Please answer yes or no.";; * ) echo "Please answer yes or no.";;
esac esac
@ -771,12 +779,10 @@ while true; do
done done
fn_header fn_header
fn_steamdl fn_steamdl
echo "Installing ${gamename} Server"
echo "================================="
fn_steaminstall fn_steaminstall
fn_steaminstall fn_steaminstall
fn_steaminstall fn_steaminstall
fn_success fn_steaminstall
fn_steamfix fn_steamfix
fn_loginstall fn_loginstall
echo "Configuring ${gamename} Server" echo "Configuring ${gamename} Server"
@ -858,7 +864,7 @@ case "$1" in
update-restart) update-restart)
fn_stopserver fn_stopserver
fn_updateserver fn_updateserver
fn_startserver;; fn_startserver;;
validate) validate)
fn_validateserver;; fn_validateserver;;
validate-restart) validate-restart)

33
Insurgency/insserver

@ -3,7 +3,7 @@
# Server Management Script # Server Management Script
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://danielgibbs.co.uk # Website: http://danielgibbs.co.uk
# Version: 050814 # Version: 100914
#### Variables #### #### Variables ####
@ -39,7 +39,7 @@ servicename="ins-server"
gamename="Insurgency" gamename="Insurgency"
engine="source" engine="source"
# Directorys # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )" rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )"
selfname="$0" selfname="$0"
lockselfname=$(echo ".${servicename}.lock") lockselfname=$(echo ".${servicename}.lock")
@ -192,18 +192,26 @@ fn_debugserver(){
fn_rootcheck fn_rootcheck
fn_syscheck fn_syscheck
fn_autoip fn_autoip
fn_distro
fn_uptime
fn_load
fn_parms fn_parms
echo "" echo ""
echo "${gamename} Debug" echo "${gamename} Debug"
echo "============================" echo "============================"
echo "" echo ""
echo -e "Use for identifying server issues only!" echo -e "Distro: ${os}"
echo -e "Press CTRL+c to drop out of debug mode" echo -e "Arch: ${arch}"
echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" echo -e "Kernel: ${kernel}"
echo -e "Hostname: $HOSTNAME"
echo "" echo ""
echo "Start parameters:" echo "Start parameters:"
echo ${parms} echo ${parms}
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 ""
while true; do while true; do
read -p "Continue? [y/N]" yn read -p "Continue? [y/N]" yn
case $yn in case $yn in
@ -467,14 +475,15 @@ fn_monitorserver(){
fn_rootcheck fn_rootcheck
fn_syscheck fn_syscheck
fn_autoip fn_autoip
fn_printdots "Monitoring ${servicename}: ${servername}"
sleep 1
if [ ! -f ${lockselfname} ]; then if [ ! -f ${lockselfname} ]; then
fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled" fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled"
sleep 1 sleep 1
echo -en "\n" echo -en "\n"
echo "To enable monitor run ${selfname} start"
exit exit
fi fi
fn_printdots "Monitoring ${servicename}: ${servername}"
sleep 1
fn_scriptlog "Monitoring ${servername}" fn_scriptlog "Monitoring ${servername}"
updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l) updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l)
if [ "${updatecheck}" = "0" ]; then if [ "${updatecheck}" = "0" ]; then
@ -655,9 +664,9 @@ echo "Downloading libc.so.6, libpthread.so.0 & librt.so.1"
echo "=================================" echo "================================="
sleep 1 sleep 1
cd "${filesdir}/bin" cd "${filesdir}/bin"
wget https://github.com/dgibbs64/linuxgameservers/raw/master/Insurgency/dependencies/libc.so.6 wget -nv 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 -nv 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/librt.so.1
sleep 1 sleep 1
echo "" echo ""
} }
@ -747,7 +756,7 @@ fn_retryinstall(){
while true; do while true; do
read -p "Retry install? [y/N]" yn read -p "Retry install? [y/N]" yn
case $yn in case $yn in
[Yy]* ) fn_install;; [Yy]* ) fn_install; exit;;
[Nn]* ) echo Exiting; exit;; [Nn]* ) echo Exiting; exit;;
* ) echo "Please answer yes or no.";; * ) echo "Please answer yes or no.";;
esac esac
@ -842,7 +851,7 @@ case "$1" in
update-restart) update-restart)
fn_stopserver fn_stopserver
fn_updateserver fn_updateserver
fn_startserver;; fn_startserver;;
validate) validate)
fn_validateserver;; fn_validateserver;;
validate-restart) validate-restart)

27
KillingFloor/kfserver

@ -3,7 +3,7 @@
# Server Management Script # Server Management Script
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://danielgibbs.co.uk # Website: http://danielgibbs.co.uk
# Version: 050814 # Version: 100914
#### Variables #### #### Variables ####
@ -19,7 +19,7 @@ steampass="password"
# Steam # Steam
appid="215360" appid="215360"
# Directorys # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )" rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )"
selfname="$0" selfname="$0"
lockselfname=$(echo ".${servicename}.lock") lockselfname=$(echo ".${servicename}.lock")
@ -182,18 +182,26 @@ fn_debugserver(){
fn_rootcheck fn_rootcheck
fn_syscheck fn_syscheck
fn_autoip fn_autoip
fn_distro
fn_uptime
fn_load
fn_parms fn_parms
echo "" echo ""
echo "${gamename} Debug" echo "${gamename} Debug"
echo "============================" echo "============================"
echo "" echo ""
echo -e "Use for identifying server issues only!" echo -e "Distro: ${os}"
echo -e "Press CTRL+c to drop out of debug mode" echo -e "Arch: ${arch}"
echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" echo -e "Kernel: ${kernel}"
echo -e "Hostname: $HOSTNAME"
echo "" echo ""
echo "Start parameters:" echo "Start parameters:"
echo ${parms} echo ${parms}
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 ""
while true; do while true; do
read -p "Continue? [y/N]" yn read -p "Continue? [y/N]" yn
case $yn in case $yn in
@ -457,14 +465,15 @@ fn_monitorserver(){
fn_rootcheck fn_rootcheck
fn_syscheck fn_syscheck
fn_autoip fn_autoip
fn_printdots "Monitoring ${servicename}: ${servername}"
sleep 1
if [ ! -f ${lockselfname} ]; then if [ ! -f ${lockselfname} ]; then
fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled" fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled"
sleep 1 sleep 1
echo -en "\n" echo -en "\n"
echo "To enable monitor run ${selfname} start"
exit exit
fi fi
fn_printdots "Monitoring ${servicename}: ${servername}"
sleep 1
fn_scriptlog "Monitoring ${servername}" fn_scriptlog "Monitoring ${servername}"
updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l) updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l)
if [ "${updatecheck}" = "0" ]; then if [ "${updatecheck}" = "0" ]; then
@ -782,7 +791,7 @@ fn_retryinstall(){
while true; do while true; do
read -p "Retry install? [y/N]" yn read -p "Retry install? [y/N]" yn
case $yn in case $yn in
[Yy]* ) fn_install;; [Yy]* ) fn_install; exit;;
[Nn]* ) echo Exiting; exit;; [Nn]* ) echo Exiting; exit;;
* ) echo "Please answer yes or no.";; * ) echo "Please answer yes or no.";;
esac esac
@ -876,7 +885,7 @@ case "$1" in
update-restart) update-restart)
fn_stopserver fn_stopserver
fn_updateserver fn_updateserver
fn_startserver;; fn_startserver;;
validate) validate)
fn_validateserver;; fn_validateserver;;
validate-restart) validate-restart)

28
Left4Dead/l4dserver

@ -5,7 +5,7 @@
# Contributor: Summit Singh Thakur # Contributor: Summit Singh Thakur
# Author Website: http://danielgibbs.co.uk # Author Website: http://danielgibbs.co.uk
# Contributor Website: http://www.summit.im # Contributor Website: http://www.summit.im
# Version: 290814 # Version: 100914
#### Variables #### #### Variables ####
@ -40,7 +40,7 @@ servicename="l4d-server"
gamename="Left 4 Dead" gamename="Left 4 Dead"
engine="source" engine="source"
# Directorys # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )" rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )"
selfname="$0" selfname="$0"
lockselfname=$(echo ".${servicename}.lock") lockselfname=$(echo ".${servicename}.lock")
@ -193,18 +193,26 @@ fn_debugserver(){
fn_rootcheck fn_rootcheck
fn_syscheck fn_syscheck
fn_autoip fn_autoip
fn_distro
fn_uptime
fn_load
fn_parms fn_parms
echo "" echo ""
echo "${gamename} Debug" echo "${gamename} Debug"
echo "============================" echo "============================"
echo "" echo ""
echo -e "Use for identifying server issues only!" echo -e "Distro: ${os}"
echo -e "Press CTRL+c to drop out of debug mode" echo -e "Arch: ${arch}"
echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" echo -e "Kernel: ${kernel}"
echo -e "Hostname: $HOSTNAME"
echo "" echo ""
echo "Start parameters:" echo "Start parameters:"
echo ${parms} echo ${parms}
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 ""
while true; do while true; do
read -p "Continue? [y/N]" yn read -p "Continue? [y/N]" yn
case $yn in case $yn in
@ -468,14 +476,15 @@ fn_monitorserver(){
fn_rootcheck fn_rootcheck
fn_syscheck fn_syscheck
fn_autoip fn_autoip
fn_printdots "Monitoring ${servicename}: ${servername}"
sleep 1
if [ ! -f ${lockselfname} ]; then if [ ! -f ${lockselfname} ]; then
fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled" fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled"
sleep 1 sleep 1
echo -en "\n" echo -en "\n"
echo "To enable monitor run ${selfname} start"
exit exit
fi fi
fn_printdots "Monitoring ${servicename}: ${servername}"
sleep 1
fn_scriptlog "Monitoring ${servername}" fn_scriptlog "Monitoring ${servername}"
updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l) updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l)
if [ "${updatecheck}" = "0" ]; then if [ "${updatecheck}" = "0" ]; then
@ -667,6 +676,7 @@ echo "================================="
echo "${gamename}" echo "${gamename}"
echo "Linux Game Server Manager" echo "Linux Game Server Manager"
echo "by Daniel Gibbs" echo "by Daniel Gibbs"
echo "contributions by Summit Singh Thakur"
echo "http://danielgibbs.co.uk" echo "http://danielgibbs.co.uk"
echo "=================================" echo "================================="
echo "" echo ""
@ -746,7 +756,7 @@ fn_retryinstall(){
while true; do while true; do
read -p "Retry install? [y/N]" yn read -p "Retry install? [y/N]" yn
case $yn in case $yn in
[Yy]* ) fn_install;; [Yy]* ) fn_install; exit;;
[Nn]* ) echo Exiting; exit;; [Nn]* ) echo Exiting; exit;;
* ) echo "Please answer yes or no.";; * ) echo "Please answer yes or no.";;
esac esac
@ -841,7 +851,7 @@ case "$1" in
update-restart) update-restart)
fn_stopserver fn_stopserver
fn_updateserver fn_updateserver
fn_startserver;; fn_startserver;;
validate) validate)
fn_validateserver;; fn_validateserver;;
validate-restart) validate-restart)

27
Left4Dead2/l4d2server

@ -3,7 +3,7 @@
# Server Management Script # Server Management Script
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://danielgibbs.co.uk # Website: http://danielgibbs.co.uk
# Version: 050814 # Version: 100914
#### Variables #### #### Variables ####
@ -38,7 +38,7 @@ servicename="l4d2-server"
gamename="Left 4 Dead 2" gamename="Left 4 Dead 2"
engine="source" engine="source"
# Directorys # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )" rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )"
selfname="$0" selfname="$0"
lockselfname=$(echo ".${servicename}.lock") lockselfname=$(echo ".${servicename}.lock")
@ -191,18 +191,26 @@ fn_debugserver(){
fn_rootcheck fn_rootcheck
fn_syscheck fn_syscheck
fn_autoip fn_autoip
fn_distro
fn_uptime
fn_load
fn_parms fn_parms
echo "" echo ""
echo "${gamename} Debug" echo "${gamename} Debug"
echo "============================" echo "============================"
echo "" echo ""
echo -e "Use for identifying server issues only!" echo -e "Distro: ${os}"
echo -e "Press CTRL+c to drop out of debug mode" echo -e "Arch: ${arch}"
echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" echo -e "Kernel: ${kernel}"
echo -e "Hostname: $HOSTNAME"
echo "" echo ""
echo "Start parameters:" echo "Start parameters:"
echo ${parms} echo ${parms}
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 ""
while true; do while true; do
read -p "Continue? [y/N]" yn read -p "Continue? [y/N]" yn
case $yn in case $yn in
@ -466,14 +474,15 @@ fn_monitorserver(){
fn_rootcheck fn_rootcheck
fn_syscheck fn_syscheck
fn_autoip fn_autoip
fn_printdots "Monitoring ${servicename}: ${servername}"
sleep 1
if [ ! -f ${lockselfname} ]; then if [ ! -f ${lockselfname} ]; then
fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled" fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled"
sleep 1 sleep 1
echo -en "\n" echo -en "\n"
echo "To enable monitor run ${selfname} start"
exit exit
fi fi
fn_printdots "Monitoring ${servicename}: ${servername}"
sleep 1
fn_scriptlog "Monitoring ${servername}" fn_scriptlog "Monitoring ${servername}"
updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l) updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l)
if [ "${updatecheck}" = "0" ]; then if [ "${updatecheck}" = "0" ]; then
@ -734,7 +743,7 @@ fn_retryinstall(){
while true; do while true; do
read -p "Retry install? [y/N]" yn read -p "Retry install? [y/N]" yn
case $yn in case $yn in
[Yy]* ) fn_install;; [Yy]* ) fn_install; exit;;
[Nn]* ) echo Exiting; exit;; [Nn]* ) echo Exiting; exit;;
* ) echo "Please answer yes or no.";; * ) echo "Please answer yes or no.";;
esac esac
@ -828,7 +837,7 @@ case "$1" in
update-restart) update-restart)
fn_stopserver fn_stopserver
fn_updateserver fn_updateserver
fn_startserver;; fn_startserver;;
validate) validate)
fn_validateserver;; fn_validateserver;;
validate-restart) validate-restart)

27
NaturalSelection2/ns2server

@ -3,7 +3,7 @@
# Server Management Script # Server Management Script
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://danielgibbs.co.uk # Website: http://danielgibbs.co.uk
# Version: 050814 # Version: 100914
#### Variables #### #### Variables ####
@ -189,18 +189,26 @@ fn_debugserver(){
fn_rootcheck fn_rootcheck
fn_syscheck fn_syscheck
fn_autoip fn_autoip
fn_distro
fn_uptime
fn_load
fn_parms fn_parms
echo "" echo ""
echo "${gamename} Debug" echo "${gamename} Debug"
echo "============================" echo "============================"
echo "" echo ""
echo -e "Use for identifying server issues only!" echo -e "Distro: ${os}"
echo -e "Press CTRL+c to drop out of debug mode" echo -e "Arch: ${arch}"
echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" echo -e "Kernel: ${kernel}"
echo -e "Hostname: $HOSTNAME"
echo "" echo ""
echo "Start parameters:" echo "Start parameters:"
echo ${parms} echo ${parms}
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 ""
while true; do while true; do
read -p "Continue? [y/N]" yn read -p "Continue? [y/N]" yn
case $yn in case $yn in
@ -464,14 +472,15 @@ fn_monitorserver(){
fn_rootcheck fn_rootcheck
fn_syscheck fn_syscheck
fn_autoip fn_autoip
fn_printdots "Monitoring ${servicename}: ${servername}"
sleep 1
if [ ! -f ${lockselfname} ]; then if [ ! -f ${lockselfname} ]; then
fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled" fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled"
sleep 1 sleep 1
echo -en "\n" echo -en "\n"
echo "To enable monitor run ${selfname} start"
exit exit
fi fi
fn_printdots "Monitoring ${servicename}: ${servername}"
sleep 1
fn_scriptlog "Monitoring ${servername}" fn_scriptlog "Monitoring ${servername}"
updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l) updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l)
if [ "${updatecheck}" = "0" ]; then if [ "${updatecheck}" = "0" ]; then
@ -652,7 +661,7 @@ fn_ns2deps(){
echo "Downloading libm.so.6" echo "Downloading libm.so.6"
echo "=================================" echo "================================="
cd "${filesdir}" 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 sleep 1
echo "" echo ""
echo "Copying libstdc++.so.6" echo "Copying libstdc++.so.6"
@ -748,7 +757,7 @@ fn_retryinstall(){
while true; do while true; do
read -p "Retry install? [y/N]" yn read -p "Retry install? [y/N]" yn
case $yn in case $yn in
[Yy]* ) fn_install;; [Yy]* ) fn_install; exit;;
[Nn]* ) echo Exiting; exit;; [Nn]* ) echo Exiting; exit;;
* ) echo "Please answer yes or no.";; * ) echo "Please answer yes or no.";;
esac esac
@ -812,7 +821,7 @@ case "$1" in
update-restart) update-restart)
fn_stopserver fn_stopserver
fn_updateserver fn_updateserver
fn_startserver;; fn_startserver;;
validate) validate)
fn_validateserver;; fn_validateserver;;
validate-restart) validate-restart)

29
NoMoreRoomInHell/nmrihserver

@ -3,7 +3,7 @@
# Server Management Script # Server Management Script
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://danielgibbs.co.uk # Website: http://danielgibbs.co.uk
# Version: 050814 # Version: 100914
#### Variables #### #### Variables ####
@ -39,7 +39,7 @@ servicename="nmrih-server"
gamename="No More Room in Hell" gamename="No More Room in Hell"
engine="source" engine="source"
# Directorys # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )" rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )"
selfname="$0" selfname="$0"
lockselfname=$(echo ".${servicename}.lock") lockselfname=$(echo ".${servicename}.lock")
@ -192,18 +192,26 @@ fn_debugserver(){
fn_rootcheck fn_rootcheck
fn_syscheck fn_syscheck
fn_autoip fn_autoip
fn_distro
fn_uptime
fn_load
fn_parms fn_parms
echo "" echo ""
echo "${gamename} Debug" echo "${gamename} Debug"
echo "============================" echo "============================"
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 "Use for identifying server issues only!"
echo -e "Press CTRL+c to drop out of debug mode" 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 "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped"
echo "" echo ""
echo "Start parameters:"
echo "${parms} -debug -insecure"
echo ""
while true; do while true; do
read -p "Continue? [y/N]" yn read -p "Continue? [y/N]" yn
case $yn in case $yn in
@ -467,14 +475,15 @@ fn_monitorserver(){
fn_rootcheck fn_rootcheck
fn_syscheck fn_syscheck
fn_autoip fn_autoip
fn_printdots "Monitoring ${servicename}: ${servername}"
sleep 1
if [ ! -f ${lockselfname} ]; then if [ ! -f ${lockselfname} ]; then
fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled" fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled"
sleep 1 sleep 1
echo -en "\n" echo -en "\n"
echo "To enable monitor run ${selfname} start"
exit exit
fi fi
fn_printdots "Monitoring ${servicename}: ${servername}"
sleep 1
fn_scriptlog "Monitoring ${servername}" fn_scriptlog "Monitoring ${servername}"
updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l) updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l)
if [ "${updatecheck}" = "0" ]; then if [ "${updatecheck}" = "0" ]; then
@ -655,7 +664,7 @@ echo "Downloading libm.so.6"
echo "=================================" echo "================================="
sleep 1 sleep 1
cd "${filesdir}/srcds" 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 sleep 1
echo "" echo ""
} }
@ -745,7 +754,7 @@ fn_retryinstall(){
while true; do while true; do
read -p "Retry install? [y/N]" yn read -p "Retry install? [y/N]" yn
case $yn in case $yn in
[Yy]* ) fn_install;; [Yy]* ) fn_install; exit;;
[Nn]* ) echo Exiting; exit;; [Nn]* ) echo Exiting; exit;;
* ) echo "Please answer yes or no.";; * ) echo "Please answer yes or no.";;
esac esac
@ -840,7 +849,7 @@ case "$1" in
update-restart) update-restart)
fn_stopserver fn_stopserver
fn_updateserver fn_updateserver
fn_startserver;; fn_startserver;;
validate) validate)
fn_validateserver;; fn_validateserver;;
validate-restart) validate-restart)

27
RedOrchestra/roserver

@ -3,7 +3,7 @@
# Server Management Script # Server Management Script
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://danielgibbs.co.uk # Website: http://danielgibbs.co.uk
# Version: 050814 # Version: 100914
#### Variables #### #### Variables ####
@ -19,7 +19,7 @@ steampass="password"
# Steam # Steam
appid="223250" appid="223250"
# Directorys # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )" rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )"
selfname="$0" selfname="$0"
lockselfname=$(echo ".${servicename}.lock") lockselfname=$(echo ".${servicename}.lock")
@ -178,18 +178,26 @@ fn_debugserver(){
fn_rootcheck fn_rootcheck
fn_syscheck fn_syscheck
fn_autoip fn_autoip
fn_distro
fn_uptime
fn_load
fn_parms fn_parms
echo "" echo ""
echo "${gamename} Debug" echo "${gamename} Debug"
echo "============================" echo "============================"
echo "" echo ""
echo -e "Use for identifying server issues only!" echo -e "Distro: ${os}"
echo -e "Press CTRL+c to drop out of debug mode" echo -e "Arch: ${arch}"
echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" echo -e "Kernel: ${kernel}"
echo -e "Hostname: $HOSTNAME"
echo "" echo ""
echo "Start parameters:" echo "Start parameters:"
echo ${parms} echo ${parms}
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 ""
while true; do while true; do
read -p "Continue? [y/N]" yn read -p "Continue? [y/N]" yn
case $yn in case $yn in
@ -453,14 +461,15 @@ fn_monitorserver(){
fn_rootcheck fn_rootcheck
fn_syscheck fn_syscheck
fn_autoip fn_autoip
fn_printdots "Monitoring ${servicename}: ${servername}"
sleep 1
if [ ! -f ${lockselfname} ]; then if [ ! -f ${lockselfname} ]; then
fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled" fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled"
sleep 1 sleep 1
echo -en "\n" echo -en "\n"
echo "To enable monitor run ${selfname} start"
exit exit
fi fi
fn_printdots "Monitoring ${servicename}: ${servername}"
sleep 1
fn_scriptlog "Monitoring ${servername}" fn_scriptlog "Monitoring ${servername}"
updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l) updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l)
if [ "${updatecheck}" = "0" ]; then if [ "${updatecheck}" = "0" ]; then
@ -778,7 +787,7 @@ fn_retryinstall(){
while true; do while true; do
read -p "Retry install? [y/N]" yn read -p "Retry install? [y/N]" yn
case $yn in case $yn in
[Yy]* ) fn_install;; [Yy]* ) fn_install; exit;;
[Nn]* ) echo Exiting; exit;; [Nn]* ) echo Exiting; exit;;
* ) echo "Please answer yes or no.";; * ) echo "Please answer yes or no.";;
esac esac
@ -872,7 +881,7 @@ case "$1" in
update-restart) update-restart)
fn_stopserver fn_stopserver
fn_updateserver fn_updateserver
fn_startserver;; fn_startserver;;
validate) validate)
fn_validateserver;; fn_validateserver;;
validate-restart) validate-restart)

27
TeamFortress2/tf2server

@ -3,7 +3,7 @@
# Server Management Script # Server Management Script
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://danielgibbs.co.uk # Website: http://danielgibbs.co.uk
# Version: 050814 # Version: 100914
#### Variables #### #### Variables ####
@ -39,7 +39,7 @@ servicename="tf2-server"
gamename="Team Fortress 2" gamename="Team Fortress 2"
engine="source" engine="source"
# Directorys # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )" rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )"
selfname="$0" selfname="$0"
lockselfname=$(echo ".${servicename}.lock") lockselfname=$(echo ".${servicename}.lock")
@ -192,18 +192,26 @@ fn_debugserver(){
fn_rootcheck fn_rootcheck
fn_syscheck fn_syscheck
fn_autoip fn_autoip
fn_distro
fn_uptime
fn_load
fn_parms fn_parms
echo "" echo ""
echo "${gamename} Debug" echo "${gamename} Debug"
echo "============================" echo "============================"
echo "" echo ""
echo -e "Use for identifying server issues only!" echo -e "Distro: ${os}"
echo -e "Press CTRL+c to drop out of debug mode" echo -e "Arch: ${arch}"
echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" echo -e "Kernel: ${kernel}"
echo -e "Hostname: $HOSTNAME"
echo "" echo ""
echo "Start parameters:" echo "Start parameters:"
echo ${parms} echo ${parms}
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 ""
while true; do while true; do
read -p "Continue? [y/N]" yn read -p "Continue? [y/N]" yn
case $yn in case $yn in
@ -467,14 +475,15 @@ fn_monitorserver(){
fn_rootcheck fn_rootcheck
fn_syscheck fn_syscheck
fn_autoip fn_autoip
fn_printdots "Monitoring ${servicename}: ${servername}"
sleep 1
if [ ! -f ${lockselfname} ]; then if [ ! -f ${lockselfname} ]; then
fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled" fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled"
sleep 1 sleep 1
echo -en "\n" echo -en "\n"
echo "To enable monitor run ${selfname} start"
exit exit
fi fi
fn_printdots "Monitoring ${servicename}: ${servername}"
sleep 1
fn_scriptlog "Monitoring ${servername}" fn_scriptlog "Monitoring ${servername}"
updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l) updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l)
if [ "${updatecheck}" = "0" ]; then if [ "${updatecheck}" = "0" ]; then
@ -735,7 +744,7 @@ fn_retryinstall(){
while true; do while true; do
read -p "Retry install? [y/N]" yn read -p "Retry install? [y/N]" yn
case $yn in case $yn in
[Yy]* ) fn_install;; [Yy]* ) fn_install; exit;;
[Nn]* ) echo Exiting; exit;; [Nn]* ) echo Exiting; exit;;
* ) echo "Please answer yes or no.";; * ) echo "Please answer yes or no.";;
esac esac
@ -829,7 +838,7 @@ case "$1" in
update-restart) update-restart)
fn_stopserver fn_stopserver
fn_updateserver fn_updateserver
fn_startserver;; fn_startserver;;
validate) validate)
fn_validateserver;; fn_validateserver;;
validate-restart) validate-restart)

36
TeamFortressClassic/tfcserver

@ -3,7 +3,7 @@
# Server Management Script # Server Management Script
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://danielgibbs.co.uk # Website: http://danielgibbs.co.uk
# Version: 050814 # Version: 100914
#### Variables #### #### Variables ####
@ -38,7 +38,7 @@ servicename="tfc-server"
gamename="Team Fortress Classic" gamename="Team Fortress Classic"
engine="goldsource" engine="goldsource"
# Directorys # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )" rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )"
selfname="$0" selfname="$0"
lockselfname=$(echo ".${servicename}.lock") lockselfname=$(echo ".${servicename}.lock")
@ -191,18 +191,26 @@ fn_debugserver(){
fn_rootcheck fn_rootcheck
fn_syscheck fn_syscheck
fn_autoip fn_autoip
fn_distro
fn_uptime
fn_load
fn_parms fn_parms
echo "" echo ""
echo "${gamename} Debug" echo "${gamename} Debug"
echo "============================" echo "============================"
echo "" echo ""
echo -e "Use for identifying server issues only!" echo -e "Distro: ${os}"
echo -e "Press CTRL+c to drop out of debug mode" echo -e "Arch: ${arch}"
echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" echo -e "Kernel: ${kernel}"
echo -e "Hostname: $HOSTNAME"
echo "" echo ""
echo "Start parameters:" echo "Start parameters:"
echo ${parms} echo ${parms}
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 ""
while true; do while true; do
read -p "Continue? [y/N]" yn read -p "Continue? [y/N]" yn
case $yn in case $yn in
@ -466,14 +474,15 @@ fn_monitorserver(){
fn_rootcheck fn_rootcheck
fn_syscheck fn_syscheck
fn_autoip fn_autoip
fn_printdots "Monitoring ${servicename}: ${servername}"
sleep 1
if [ ! -f ${lockselfname} ]; then if [ ! -f ${lockselfname} ]; then
fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled" fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled"
sleep 1 sleep 1
echo -en "\n" echo -en "\n"
echo "To enable monitor run ${selfname} start"
exit exit
fi fi
fn_printdots "Monitoring ${servicename}: ${servername}"
sleep 1
fn_scriptlog "Monitoring ${servername}" fn_scriptlog "Monitoring ${servername}"
updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l) updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l)
if [ "${updatecheck}" = "0" ]; then if [ "${updatecheck}" = "0" ]; then
@ -682,13 +691,12 @@ echo ""
} }
fn_steaminstall(){ fn_steaminstall(){
echo "Installing ${gamename} Server"
echo "================================="
sleep 1 sleep 1
mkdir -pv "${filesdir}" mkdir -pv "${filesdir}"
cd "${rootdir}/steamcmd" cd "${rootdir}/steamcmd"
STEAMEXE=steamcmd ./steamcmd.sh +login ${steamuser} ${steampass} +force_install_dir "${filesdir}" +app_update ${appid} validate +quit STEAMEXE=steamcmd ./steamcmd.sh +login ${steamuser} ${steampass} +force_install_dir "${filesdir}" +app_update ${appid} validate +quit
}
fn_success(){
echo "" echo ""
echo "=================================" echo "================================="
while true; do while true; do
@ -735,7 +743,7 @@ fn_retryinstall(){
while true; do while true; do
read -p "Retry install? [y/N]" yn read -p "Retry install? [y/N]" yn
case $yn in case $yn in
[Yy]* ) fn_install;; [Yy]* ) fn_install; exit;;
[Nn]* ) echo Exiting; exit;; [Nn]* ) echo Exiting; exit;;
* ) echo "Please answer yes or no.";; * ) echo "Please answer yes or no.";;
esac esac
@ -771,14 +779,10 @@ while true; do
done done
fn_header fn_header
fn_steamdl fn_steamdl
echo "Installing ${gamename} Server"
echo "================================="
fn_steaminstall fn_steaminstall
fn_steaminstall fn_steaminstall
fn_steaminstall fn_steaminstall
fn_steaminstall fn_steaminstall
fn_steaminstall
fn_success
fn_steamfix fn_steamfix
fn_loginstall fn_loginstall
echo "Configuring ${gamename} Server" echo "Configuring ${gamename} Server"
@ -860,7 +864,7 @@ case "$1" in
update-restart) update-restart)
fn_stopserver fn_stopserver
fn_updateserver fn_updateserver
fn_startserver;; fn_startserver;;
validate) validate)
fn_validateserver;; fn_validateserver;;
validate-restart) validate-restart)

25
UnrealTournament2004/ut2k4server

@ -3,7 +3,7 @@
# Server Management Script # Server Management Script
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://danielgibbs.co.uk # Website: http://danielgibbs.co.uk
# Version: 050814 # Version: 100914
#### Variables #### #### Variables ####
@ -12,7 +12,7 @@
emailnotification="off" emailnotification="off"
email="[email protected]" email="[email protected]"
# Directorys # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )" rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )"
selfname="$0" selfname="$0"
lockselfname=$(echo ".${servicename}.lock") lockselfname=$(echo ".${servicename}.lock")
@ -171,18 +171,26 @@ fn_debugserver(){
fn_rootcheck fn_rootcheck
fn_syscheck fn_syscheck
fn_autoip fn_autoip
fn_distro
fn_uptime
fn_load
fn_parms fn_parms
echo "" echo ""
echo "${gamename} Debug" echo "${gamename} Debug"
echo "============================" echo "============================"
echo "" echo ""
echo -e "Use for identifying server issues only!" echo -e "Distro: ${os}"
echo -e "Press CTRL+c to drop out of debug mode" echo -e "Arch: ${arch}"
echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" echo -e "Kernel: ${kernel}"
echo -e "Hostname: $HOSTNAME"
echo "" echo ""
echo "Start parameters:" echo "Start parameters:"
echo ${parms} echo ${parms}
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 ""
while true; do while true; do
read -p "Continue? [y/N]" yn read -p "Continue? [y/N]" yn
case $yn in case $yn in
@ -446,14 +454,15 @@ fn_monitorserver(){
fn_rootcheck fn_rootcheck
fn_syscheck fn_syscheck
fn_autoip fn_autoip
fn_printdots "Monitoring ${servicename}: ${servername}"
sleep 1
if [ ! -f ${lockselfname} ]; then if [ ! -f ${lockselfname} ]; then
fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled" fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled"
sleep 1 sleep 1
echo -en "\n" echo -en "\n"
echo "To enable monitor run ${selfname} start"
exit exit
fi fi
fn_printdots "Monitoring ${servicename}: ${servername}"
sleep 1
fn_scriptlog "Monitoring ${servername}" fn_scriptlog "Monitoring ${servername}"
updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l) updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l)
if [ "${updatecheck}" = "0" ]; then if [ "${updatecheck}" = "0" ]; then
@ -791,7 +800,7 @@ fn_retryinstall(){
while true; do while true; do
read -p "Retry install? [y/N]" yn read -p "Retry install? [y/N]" yn
case $yn in case $yn in
[Yy]* ) fn_install;; [Yy]* ) fn_install; exit;;
[Nn]* ) echo Exiting; exit;; [Nn]* ) echo Exiting; exit;;
* ) echo "Please answer yes or no.";; * ) echo "Please answer yes or no.";;
esac esac

25
UnrealTournament99/ut99server

@ -3,7 +3,7 @@
# Server Management Script # Server Management Script
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://danielgibbs.co.uk # Website: http://danielgibbs.co.uk
# Version: 050814 # Version: 100914
#### Variables #### #### Variables ####
@ -12,7 +12,7 @@
emailnotification="off" emailnotification="off"
email="[email protected]" email="[email protected]"
# Directorys # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )" rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )"
selfname="$0" selfname="$0"
filesdir="${rootdir}/serverfiles" filesdir="${rootdir}/serverfiles"
@ -170,18 +170,26 @@ fn_debugserver(){
fn_rootcheck fn_rootcheck
fn_syscheck fn_syscheck
fn_autoip fn_autoip
fn_distro
fn_uptime
fn_load
fn_parms fn_parms
echo "" echo ""
echo "${gamename} Debug" echo "${gamename} Debug"
echo "============================" echo "============================"
echo "" echo ""
echo -e "Use for identifying server issues only!" echo -e "Distro: ${os}"
echo -e "Press CTRL+c to drop out of debug mode" echo -e "Arch: ${arch}"
echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" echo -e "Kernel: ${kernel}"
echo -e "Hostname: $HOSTNAME"
echo "" echo ""
echo "Start parameters:" echo "Start parameters:"
echo ${parms} echo ${parms}
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 ""
while true; do while true; do
read -p "Continue? [y/N]" yn read -p "Continue? [y/N]" yn
case $yn in case $yn in
@ -445,14 +453,15 @@ fn_monitorserver(){
fn_rootcheck fn_rootcheck
fn_syscheck fn_syscheck
fn_autoip fn_autoip
fn_printdots "Monitoring ${servicename}: ${servername}"
sleep 1
if [ ! -f ${lockselfname} ]; then if [ ! -f ${lockselfname} ]; then
fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled" fn_printinfo "Monitoring ${servicename}: No lock file found: Monitor disabled"
sleep 1 sleep 1
echo -en "\n" echo -en "\n"
echo "To enable monitor run ${selfname} start"
exit exit
fi fi
fn_printdots "Monitoring ${servicename}: ${servername}"
sleep 1
fn_scriptlog "Monitoring ${servername}" fn_scriptlog "Monitoring ${servername}"
updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l) updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l)
if [ "${updatecheck}" = "0" ]; then if [ "${updatecheck}" = "0" ]; then
@ -772,7 +781,7 @@ fn_retryinstall(){
while true; do while true; do
read -p "Retry install? [y/N]" yn read -p "Retry install? [y/N]" yn
case $yn in case $yn in
[Yy]* ) fn_install;; [Yy]* ) fn_install; exit;;
[Nn]* ) echo Exiting; exit;; [Nn]* ) echo Exiting; exit;;
* ) echo "Please answer yes or no.";; * ) echo "Please answer yes or no.";;
esac esac

Loading…
Cancel
Save