SRCDS Steam group


srcds autorestart
#1
hey, there are probably a couple of hundreds of posts with the info i need, but i haven't found any.


I run 4 srcds servers (Counter-Strike: Source) on one ubuntu box.
I have set it up with a basic start.sh script
Code:
#!/bin/sh
echo "Starting CS:Source #1"
screen -A -m -d -S 111111 taskset -c 0 ./srcds_run -console -pingboost 3 -cstrike +map de_dust2 +maxplayers 24 -autoupdate -IP 91.204.209.61 -port 27015 +fps_max 300 -tickrate 100

each server has it's own start.sh "111111" is "222222" for the second server and so on.

What i want is a script to automaticly restart the servers if they crash/time out.

I use webmin to administer my server where ever i am. If it can easily be set up in webmin that would be great.



Kind regards
Reply
#2
you already have -autoupdate so your server will be restarted after 10 seconds if it crashes.
http://www.fpsmeter.org
http://wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
Reply
#3
yeah it works if the server completely shuts down, but not if it times out or just stops.

The process does not get terminated, and that results in the problem where it does not restart
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)