„scripts/start-server.sh“ ändern
This commit is contained in:
@@ -90,8 +90,6 @@ else
|
|||||||
fi
|
fi
|
||||||
echo "---Checking for old display lock files---"
|
echo "---Checking for old display lock files---"
|
||||||
find /tmp -name ".X99*" -exec rm -f {} \; > /dev/null 2>&1
|
find /tmp -name ".X99*" -exec rm -f {} \; > /dev/null 2>&1
|
||||||
echo "---Checking for old logfiles---"
|
|
||||||
find ${SERVER_DIR} -name "masterLog.*" -exec rm -f {} \; > /dev/null 2>&1
|
|
||||||
chmod -R ${DATA_PERM} ${DATA_DIR}
|
chmod -R ${DATA_PERM} ${DATA_DIR}
|
||||||
echo "---Server ready---"
|
echo "---Server ready---"
|
||||||
|
|
||||||
@@ -101,11 +99,10 @@ sleep 3
|
|||||||
|
|
||||||
echo "---Start Server---"
|
echo "---Start Server---"
|
||||||
cd ${SERVER_DIR}
|
cd ${SERVER_DIR}
|
||||||
screen -S Wreckfest -L -Logfile ${SERVER_DIR}/masterLog.0 -d -m wine64 Wreckfest_x64.exe -s server_config=server_config.cfg ${GAME_PARAMS}
|
screen -S Wreckfest -d -m wine64 Wreckfest_x64.exe -s server_config=server_config.cfg ${GAME_PARAMS}
|
||||||
sleep 1
|
sleep 1
|
||||||
if [ "${ENABLE_WEBCONSOLE}" == "true" ]; then
|
if [ "${ENABLE_WEBCONSOLE}" == "true" ]; then
|
||||||
/opt/scripts/start-gotty.sh 2>/dev/null &
|
/opt/scripts/start-gotty.sh 2>/dev/null &
|
||||||
fi
|
fi
|
||||||
sleep 1
|
sleep 1
|
||||||
screen -S watchdog -d -m /opt/scripts/start-watchdog.sh
|
tail --pid=$(pgrep Wreckfest_x64.e) -f /dev/null
|
||||||
tail -f ${SERVER_DIR}/masterLog.0
|
|
Reference in New Issue
Block a user