08-20-2019, 12:31 PM
hey . i want to start a samp server for my friend in ogp panel but i got this error in OGP_HOME_000000005_startup_scr.sh file .
how can i fix it? please help me i really need to fix this error
how can i fix it? please help me i really need to fix this error
Quote:#!/bin/bash
function startServer(){
NUMSECONDS=`expr $(date +%s)`
until ./samp03svr ; do
let DIFF=(`date +%s` - "$NUMSECONDS")
if [ "$DIFF" -gt 15 ]; then
NUMSECONDS=`expr $(date +%s)`
echo "Server './samp03svr ' crashed with exit code $?. Respawning..." >&2
fi
sleep 3
done
let DIFF=(`date +%s` - "$NUMSECONDS")
if [ ! -e "SERVER_STOPPED" ] && [ "$DIFF" -gt 15 ]; then
startServer
fi
}
startServer
Thanks Post4VPS