mirror of
https://github.com/GameServerManagers/LinuxGSM.git
synced 2025-01-08 12:07:37 +08:00
Added logdir check to debug mode
This commit is contained in:
parent
a3cdeea05d
commit
491a6c78ea
@ -16,6 +16,7 @@ email="email@example.com"
|
||||
servername="Mumble"
|
||||
servicename="mumble-server"
|
||||
|
||||
# Directorys
|
||||
# Directorys
|
||||
rootdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
selfname="$0"
|
||||
@ -208,6 +209,9 @@ fn_debugserver(){
|
||||
fn_rootcheck
|
||||
fn_syscheck
|
||||
cd ${filesdir}
|
||||
if [ -f ${logdir} ];then
|
||||
cp ${logfile} ${logfiledate}
|
||||
fi
|
||||
echo -e "[\e[0;32m OK \e[0;39m] Starting ${servicename}: ${servername} Debug mode!"
|
||||
sleep 0.5
|
||||
echo -e "Use for identifying server issues only!"
|
||||
@ -263,4 +267,4 @@ case "$1" in
|
||||
echo "Usage: $0 {start|stop|restart|monitor|debug|email-test}"
|
||||
exit 1;;
|
||||
esac
|
||||
exit
|
||||
exit
|
Loading…
Reference in New Issue
Block a user