| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- #!/bin/bash
- # LGSM command_debug.sh function
- # Author: Daniel Gibbs
- # Website: http://gameservermanagers.com
- lgsm_version="271215"
- # Description: Runs the server without tmux. Runs direct from the terminal.
- local modulename="Debug"
- check_root.sh
- check_systemdir.sh
- check_ip.sh
- check_logs.sh
- info_distro.sh
- fn_parms
- echo ""
- echo "${gamename} Debug"
- echo "============================"
- echo ""
- echo -e "Distro: ${os}"
- echo -e "Arch: ${arch}"
- echo -e "Kernel: ${kernel}"
- echo -e "Hostname: $HOSTNAME"
- echo ""
- echo "Start parameters:"
- if [ "${engine}" == "source" ]||[ "${engine}" == "goldsource" ]; then
- echo "${executable} ${parms} -debug"
- else
- echo "${executable} ${parms}"
- fi
- echo ""
- echo -e "Use for identifying server issues only!"
- echo -e "Press CTRL+c to drop out of debug mode."
- fn_printwarningnl "If ${servicename} is already running it will be stopped."
- echo ""
- while true; do
- read -e -i "y" -p "Continue? [Y/n]" yn
- case $yn in
- [Yy]* ) break;;
- [Nn]* ) echo Exiting; return;;
- * ) echo "Please answer yes or no.";;
- esac
- done
- fn_scriptlog "Starting debug"
- fn_printinfonl "Stopping any running servers"
- fn_scriptlog "Stopping any running servers"
- sleep 1
- command_stop.sh
- fn_printdots "Starting debug"
- sleep 1
- fn_printok "Starting debug"
- fn_scriptlog "Started debug"
- sleep 1
- echo -en "\n"
- cd "${executabledir}"
- if [ "${engine}" == "source" ]||[ "${engine}" == "goldsource" ]; then
- if [ "${gamename}" == "Counter Strike: Global Offensive" ]; then
- startfix=1
- fix_csgo.sh
- elif [ "${gamename}" == "Insurgency" ]; then
- fix_ins.sh
- elif [ "${gamename}" == "ARMA 3" ]; then
- fix_arma3.sh
- fi
- ${executable} ${parms} -debug
- else
- ${executable} ${parms}
- fi
|