Minor fixes to startup-scripts, disabled screen check since it can cause some issues
This commit is contained in:
@@ -17,15 +17,15 @@ function configureFiles() {
|
||||
function checkStatus() {
|
||||
local ret=1
|
||||
# wipe do : destroy old screens + ls
|
||||
screen -wipe
|
||||
if screen -ls $1 | grep -q "No Sockets found"
|
||||
then
|
||||
return 0
|
||||
fi
|
||||
#screen -wipe
|
||||
#if screen -ls $1 | grep -q "No Sockets found"
|
||||
#then
|
||||
# return 0
|
||||
#fi
|
||||
|
||||
local gdbres=$(pgrep -f "gdb -x $GDB --batch $SERVERBIN")
|
||||
if [[ $GDB_ENABLED -eq 0 && -z $gdbres ]]; then
|
||||
return 0
|
||||
if [[ $GDB_ENABLED -eq 1 && ! -z $gdbres ]]; then
|
||||
return 1
|
||||
fi
|
||||
|
||||
#
|
||||
@@ -34,11 +34,11 @@ function checkStatus() {
|
||||
# This is an extra check
|
||||
#
|
||||
local binres=$(pgrep -f "$SERVERBIN -c $CONFIG")
|
||||
if [ -z $binres ]; then
|
||||
return 0
|
||||
if [ ! -z $binres ]; then
|
||||
return 1
|
||||
fi
|
||||
|
||||
return 1
|
||||
return 0
|
||||
}
|
||||
|
||||
function run() {
|
||||
|
||||
Reference in New Issue
Block a user