SRCDS Steam group


Another question :D
#1
I have a little big problem Big Grin . When I use the "rcon quit" command on my source dedicated servers, servers go down, but they dont restart themself. I use screens. Why?

Thank you very much Big Grin
Reply
#2
Are they supposed to restart themselves on a "quit" command?
Reply
#3
Try out with this start script:

#!/bin/bash
while true;
do

export LD_LIBRARY_PATH=/path/to/your/srcds_l/:$LD_LIBRARY_PATH
./srcds_run -console -game cstrike +map <your map> +exec server.cfg +maxplayers xx -autoupdate -port <your port> +ip <your ip>
date >> crash.txt
clear
echo "|-----|"
sleep 1
clear
echo "|+----|"
sleep 1
clear
echo "|++---|"
sleep 1
clear
echo "|+++--|"
sleep 1
clear
echo "|++++-|"
sleep 1
clear
echo "|+++++|"
echo ""
echo ""
echo "Server reinitialization..."
echo ""
done

When your server crashes, this start script should get it online again.
Reply
#4
thank you sprinter, script works fine Big Grin . If i would it in background?
Reply
#5
Make this script executable and then create another start-file like this:


screen -A -m -d -S css1 ./name_of_the_first_script


Now you have the srcds server launched on the screen called "css1".

Have Fun Smile
Reply
#6
Sprinter you are my new god, thank you for all.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)