SRCDS Steam group


Two Servers
#1
Im trying to get 2 TF2 servers running on my VPS. I have installed the server files no problem but am stuck on how to start the server.

I can start one server at once by using:
Code:
#!/bin/sh
echo "Starting GoldRush TF2 Server"
sleep 1
screen -A -m -d -S gold ./srcds_run -console -game tf +87.117.225.161 -port 27017 +map pl_goldrush

When I try to start another server, the first one terminates and the new one starts. After a few seconds the new one terminates and the old one starts up again. This starts an endless cycle.

Any help would be appreciated.

Thanks.
Reply
#2
stuartb55 Wrote:Im trying to get 2 TF2 servers running on my VPS. I have installed the server files no problem but am stuck on how to start the server.

I can start one server at once by using:
Code:
#!/bin/sh
echo "Starting GoldRush TF2 Server"
sleep 1
screen -A -m -d -S gold ./srcds_run -console -game tf +87.117.225.161 -port 27017 +map pl_goldrush

When I try to start another server, the first one terminates and the new one starts. After a few seconds the new one terminates and the old one starts up again. This starts an endless cycle.

Any help would be appreciated.

Thanks.

You're not specifying the external IP of the server correctly (assuming you're trying to run each server on a different IP). The correct format is -ip XXX.XXX.XXX.XXX

Try this instead:
Code:
#!/bin/sh
echo "Starting GoldRush TF2 Server"
sleep 1
screen -A -m -d -S gold ./srcds_run -console -game tf -ip 87.117.225.161 -port 27017 +map pl_goldrush

If you're not running each server on a separate external IP, simply delete "+87.117.225.161" and make sure you change the command line -port value for each server (i.e., -port 27017 for Server A and -port 27018 for Server B)
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)