Browse Source

New feature: Dev debug

I useful feature for developers.

This will enable a log to be created of everything that ran when
executing a command. It uses the set command.

When you run a command a file dev-debug.log is created and will output
set -x
pull/575/head
Daniel Gibbs 9 years ago
parent
commit
35be754990
  1. 6
      7DaysToDie/sdtdserver
  2. 6
      ARKSurvivalEvolved/arkserver
  3. 6
      Arma3/arma3server
  4. 6
      BlackMesa/bmdmserver
  5. 6
      BladeSymphony/bsserver
  6. 6
      CounterStrike/csserver
  7. 6
      CounterStrikeConditionZero/csczserver
  8. 6
      CounterStrikeGlobalOffensive/csgoserver
  9. 6
      CounterStrikeSource/cssserver
  10. 6
      DayOfDefeat/dodserver
  11. 6
      DayOfDefeatSource/dodsserver
  12. 6
      DeathmatchClassic/dmcserver
  13. 6
      DontStarveTogether/dstserver
  14. 6
      DoubleActionBoogaloo/dabserver
  15. 6
      FistfulOfFrags/fofserver
  16. 6
      GarrysMod/gmodserver
  17. 6
      HalfLife2Deathmatch/hl2dmserver
  18. 6
      HalfLifeDeathmatch/hldmserver
  19. 6
      HalfLifeDeathmatchSource/hldmsserver
  20. 6
      Insurgency/insserver
  21. 6
      JustCause2/jc2server
  22. 6
      KillingFloor/kfserver
  23. 6
      Left4Dead/l4dserver
  24. 6
      Left4Dead2/l4d2server
  25. 6
      Mumble/mumbleserver
  26. 6
      NS2Combat/ns2cserver
  27. 6
      NaturalSelection2/ns2server
  28. 6
      NoMoreRoomInHell/nmrihserver
  29. 6
      OpposingForce/opforserver
  30. 6
      PiratesVikingandKnightsII/pvkiiserver
  31. 6
      ProjectZomboid/pzserver
  32. 6
      RedOrchestra/roserver
  33. 6
      Ricochet/ricochetserver
  34. 6
      SeriousSam3BFE/ss3sserver
  35. 6
      StarBound/sbserver
  36. 6
      TeamFortress2/tf2server
  37. 6
      TeamFortressClassic/tfcserver
  38. 6
      TeamSpeak3/ts3server
  39. 6
      Teeworlds/twserver
  40. 6
      Terraria/terrariaserver
  41. 6
      UnrealTournament2004/ut2k4server
  42. 6
      UnrealTournament99/ut99server
  43. 13
      functions/fn_debug_dev
  44. 7
      functions/fn_functions
  45. 14
      functions/fn_getopt

6
7DaysToDie/sdtdserver

@ -3,6 +3,12 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
if [ -f ".dev-debug" ]; then
exec 5>dev-debug.log
BASH_XTRACEFD="5"
set -x
fi
version="201215"
#### Variables ####

6
ARKSurvivalEvolved/arkserver

@ -3,6 +3,12 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
if [ -f ".dev-debug" ]; then
exec 5>dev-debug.log
BASH_XTRACEFD="5"
set -x
fi
version="201215"
#### Variables ####

6
Arma3/arma3server

@ -4,6 +4,12 @@
# Author: Daniel Gibbs
# Contributor: Scarsz
# Website: http://gameservermanagers.com
if [ -f ".dev-debug" ]; then
exec 5>dev-debug.log
BASH_XTRACEFD="5"
set -x
fi
version="201215"
#### Variables ####

6
BlackMesa/bmdmserver

@ -3,6 +3,12 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
if [ -f ".dev-debug" ]; then
exec 5>dev-debug.log
BASH_XTRACEFD="5"
set -x
fi
version="201215"
#### Variables ####

6
BladeSymphony/bsserver

@ -3,6 +3,12 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
if [ -f ".dev-debug" ]; then
exec 5>dev-debug.log
BASH_XTRACEFD="5"
set -x
fi
version="201215"
#### Variables ####

6
CounterStrike/csserver

@ -3,6 +3,12 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
if [ -f ".dev-debug" ]; then
exec 5>dev-debug.log
BASH_XTRACEFD="5"
set -x
fi
version="201215"
#### Variables ####

6
CounterStrikeConditionZero/csczserver

@ -3,6 +3,12 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
if [ -f ".dev-debug" ]; then
exec 5>dev-debug.log
BASH_XTRACEFD="5"
set -x
fi
version="201215"
#### Variables ####

6
CounterStrikeGlobalOffensive/csgoserver

@ -3,6 +3,12 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
if [ -f ".dev-debug" ]; then
exec 5>dev-debug.log
BASH_XTRACEFD="5"
set -x
fi
version="201215"
#### Variables ####

6
CounterStrikeSource/cssserver

@ -3,6 +3,12 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
if [ -f ".dev-debug" ]; then
exec 5>dev-debug.log
BASH_XTRACEFD="5"
set -x
fi
version="201215"
#### Variables ####

6
DayOfDefeat/dodserver

@ -3,6 +3,12 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
if [ -f ".dev-debug" ]; then
exec 5>dev-debug.log
BASH_XTRACEFD="5"
set -x
fi
version="201215"
#### Variables ####

6
DayOfDefeatSource/dodsserver

@ -3,6 +3,12 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
if [ -f ".dev-debug" ]; then
exec 5>dev-debug.log
BASH_XTRACEFD="5"
set -x
fi
version="201215"
#### Variables ####

6
DeathmatchClassic/dmcserver

@ -3,6 +3,12 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
if [ -f ".dev-debug" ]; then
exec 5>dev-debug.log
BASH_XTRACEFD="5"
set -x
fi
version="201215"
#### Variables ####

6
DontStarveTogether/dstserver

@ -3,6 +3,12 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
if [ -f ".dev-debug" ]; then
exec 5>dev-debug.log
BASH_XTRACEFD="5"
set -x
fi
version="201215"
#### Variables ####

6
DoubleActionBoogaloo/dabserver

@ -3,6 +3,12 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
if [ -f ".dev-debug" ]; then
exec 5>dev-debug.log
BASH_XTRACEFD="5"
set -x
fi
version="201215"
#### Variables ####

6
FistfulOfFrags/fofserver

@ -3,6 +3,12 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
if [ -f ".dev-debug" ]; then
exec 5>dev-debug.log
BASH_XTRACEFD="5"
set -x
fi
version="201215"
#### Variables ####

6
GarrysMod/gmodserver

@ -3,6 +3,12 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
if [ -f ".dev-debug" ]; then
exec 5>dev-debug.log
BASH_XTRACEFD="5"
set -x
fi
version="201215"
#### Variables ####

6
HalfLife2Deathmatch/hl2dmserver

@ -3,6 +3,12 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
if [ -f ".dev-debug" ]; then
exec 5>dev-debug.log
BASH_XTRACEFD="5"
set -x
fi
version="201215"
#### Variables ####

6
HalfLifeDeathmatch/hldmserver

@ -3,6 +3,12 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
if [ -f ".dev-debug" ]; then
exec 5>dev-debug.log
BASH_XTRACEFD="5"
set -x
fi
version="201215"
#### Variables ####

6
HalfLifeDeathmatchSource/hldmsserver

@ -3,6 +3,12 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
if [ -f ".dev-debug" ]; then
exec 5>dev-debug.log
BASH_XTRACEFD="5"
set -x
fi
version="201215"
#### Variables ####

6
Insurgency/insserver

@ -3,6 +3,12 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
if [ -f ".dev-debug" ]; then
exec 5>dev-debug.log
BASH_XTRACEFD="5"
set -x
fi
version="201215"
#### Variables ####

6
JustCause2/jc2server

@ -3,6 +3,12 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
if [ -f ".dev-debug" ]; then
exec 5>dev-debug.log
BASH_XTRACEFD="5"
set -x
fi
version="201215"
#### Variables ####

6
KillingFloor/kfserver

@ -3,6 +3,12 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
if [ -f ".dev-debug" ]; then
exec 5>dev-debug.log
BASH_XTRACEFD="5"
set -x
fi
version="201215"
#### Variables ####

6
Left4Dead/l4dserver

@ -4,6 +4,12 @@
# Author: Daniel Gibbs
# Contributor: Summit Singh Thakur
# Website: http://gameservermanagers.com
if [ -f ".dev-debug" ]; then
exec 5>dev-debug.log
BASH_XTRACEFD="5"
set -x
fi
version="201215"
#### Variables ####

6
Left4Dead2/l4d2server

@ -3,6 +3,12 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
if [ -f ".dev-debug" ]; then
exec 5>dev-debug.log
BASH_XTRACEFD="5"
set -x
fi
version="201215"
#### Variables ####

6
Mumble/mumbleserver

@ -3,6 +3,12 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
if [ -f ".dev-debug" ]; then
exec 5>dev-debug.log
BASH_XTRACEFD="5"
set -x
fi
version="201215"
#### Variables ####

6
NS2Combat/ns2cserver

@ -3,6 +3,12 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
if [ -f ".dev-debug" ]; then
exec 5>dev-debug.log
BASH_XTRACEFD="5"
set -x
fi
version="201215"
#### Variables ####

6
NaturalSelection2/ns2server

@ -3,6 +3,12 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
if [ -f ".dev-debug" ]; then
exec 5>dev-debug.log
BASH_XTRACEFD="5"
set -x
fi
version="201215"
#### Variables ####

6
NoMoreRoomInHell/nmrihserver

@ -3,6 +3,12 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
if [ -f ".dev-debug" ]; then
exec 5>dev-debug.log
BASH_XTRACEFD="5"
set -x
fi
version="201215"
#### Variables ####

6
OpposingForce/opforserver

@ -3,6 +3,12 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
if [ -f ".dev-debug" ]; then
exec 5>dev-debug.log
BASH_XTRACEFD="5"
set -x
fi
version="201215"
#### Variables ####

6
PiratesVikingandKnightsII/pvkiiserver

@ -3,6 +3,12 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
if [ -f ".dev-debug" ]; then
exec 5>dev-debug.log
BASH_XTRACEFD="5"
set -x
fi
version="201215"
#### Variables ####

6
ProjectZomboid/pzserver

@ -4,6 +4,12 @@
# Author: Daniel Gibbs
# Contributions: Bryce Van Dyk (SingingTree)
# Website: http://gameservermanagers.com
if [ -f ".dev-debug" ]; then
exec 5>dev-debug.log
BASH_XTRACEFD="5"
set -x
fi
version="201215"
#### Variables ####

6
RedOrchestra/roserver

@ -3,6 +3,12 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
if [ -f ".dev-debug" ]; then
exec 5>dev-debug.log
BASH_XTRACEFD="5"
set -x
fi
version="201215"
#### Variables ####

6
Ricochet/ricochetserver

@ -3,6 +3,12 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
if [ -f ".dev-debug" ]; then
exec 5>dev-debug.log
BASH_XTRACEFD="5"
set -x
fi
version="201215"
#### Variables ####

6
SeriousSam3BFE/ss3sserver

@ -3,6 +3,12 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
if [ -f ".dev-debug" ]; then
exec 5>dev-debug.log
BASH_XTRACEFD="5"
set -x
fi
version="121215"
#### Variables ####

6
StarBound/sbserver

@ -3,6 +3,12 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
if [ -f ".dev-debug" ]; then
exec 5>dev-debug.log
BASH_XTRACEFD="5"
set -x
fi
version="201215"
#### Variables ####

6
TeamFortress2/tf2server

@ -3,6 +3,12 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
if [ -f ".dev-debug" ]; then
exec 5>dev-debug.log
BASH_XTRACEFD="5"
set -x
fi
version="201215"
#### Variables ####

6
TeamFortressClassic/tfcserver

@ -3,6 +3,12 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
if [ -f ".dev-debug" ]; then
exec 5>dev-debug.log
BASH_XTRACEFD="5"
set -x
fi
version="201215"
#### Variables ####

6
TeamSpeak3/ts3server

@ -3,6 +3,12 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
if [ -f ".dev-debug" ]; then
exec 5>dev-debug.log
BASH_XTRACEFD="5"
set -x
fi
version="201215"
#### Variables ####

6
Teeworlds/twserver

@ -4,6 +4,12 @@
# Author: Daniel Gibbs
# Contributor: Bryce Van Dyk (SingingTree)
# Website: http://gameservermanagers.com
if [ -f ".dev-debug" ]; then
exec 5>dev-debug.log
BASH_XTRACEFD="5"
set -x
fi
version="201215"
#### Variables ####

6
Terraria/terrariaserver

@ -4,6 +4,12 @@
# Author: Daniel Gibbs
# Contributor: Bryce Van Dyk (SingingTree)
# Website: http://gameservermanagers.com
if [ -f ".dev-debug" ]; then
exec 5>dev-debug.log
BASH_XTRACEFD="5"
set -x
fi
version="201215"
#### Variables ####

6
UnrealTournament2004/ut2k4server

@ -3,6 +3,12 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
if [ -f ".dev-debug" ]; then
exec 5>dev-debug.log
BASH_XTRACEFD="5"
set -x
fi
version="201215"
#### Variables ####

6
UnrealTournament99/ut99server

@ -3,6 +3,12 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
if [ -f ".dev-debug" ]; then
exec 5>dev-debug.log
BASH_XTRACEFD="5"
set -x
fi
version="121215"
#### Variables ####

13
functions/fn_debug_dev

@ -0,0 +1,13 @@
#!/bin/bash
# LGSM fn_debug_dev function
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
lgsm_version="061115"
if [ -f ".dev-debug" ]; then
rm .dev-debug
fn_printoknl "Disabled dev-debug"
else
date > .dev-debug
fn_printoknl "Enabled dev-debug"
fi

7
functions/fn_functions

@ -2,7 +2,7 @@
# LGSM fn_functions function
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
lgsm_version="061115"
lgsm_version="201215"
# Description: Defines all functions to allow download and execution of functions using fn_runfunction.
# This function is called first before any other function. Without this file other functions would not load.
@ -102,6 +102,11 @@ functionfile="${FUNCNAME}"
fn_runfunction
}
fn_debug_dev(){
functionfile="${FUNCNAME}"
fn_runfunction
}
fn_deps_detect(){
functionfile="${FUNCNAME}"
fn_runfunction

14
functions/fn_getopt

@ -35,6 +35,8 @@ case "$getopt" in
fn_console;;
d|debug)
fn_debug;;
dev|dev-debug)
fn_debug_dev;;
i|install)
fn_install;;
ai|auto-install)
@ -88,6 +90,8 @@ case "$getopt" in
fn_details;;
b|backup)
fn_backup;;
dev|dev-debug)
fn_debug_dev;;
i|install)
fn_install;;
ai|auto-install)
@ -133,6 +137,8 @@ case "$getopt" in
fn_email_test;;
b|backup)
fn_backup;;
dev|dev-debug)
fn_debug_dev;;
console)
fn_console;;
d|debug)
@ -189,6 +195,8 @@ case "$getopt" in
fn_console;;
d|debug)
fn_debug;;
dev|dev-debug)
fn_debug_dev;;
i|install)
fn_install;;
ai|auto-install)
@ -247,6 +255,8 @@ case "$getopt" in
fn_console;;
d|debug)
fn_debug;;
dev|dev-debug)
fn_debug_dev;;
i|install)
fn_install;;
mc|map-compressor)
@ -307,6 +317,8 @@ case "$getopt" in
fn_console;;
d|debug)
fn_debug;;
dev|dev-debug)
fn_debug_dev;;
i|install)
fn_install;;
ai|auto-install)
@ -366,6 +378,8 @@ case "$getopt" in
fn_console;;
d|debug)
fn_debug;;
dev|dev-debug)
fn_debug_dev;;
i|install)
fn_install;;
mc|map-compressor)

Loading…
Cancel
Save