It's in the forum thread, here's a c&p:

Start lines:

PORT=27017
./srcds_run -game left4dead -port $PORT +map l4d_hospital01_apartment

PORT=27020
./srcds_run -game left4dead2 -port $PORT +map c1m1_hotel

That's an excerpt of the script, in detail it's

script 1: start_l4d1.sh

#!/bin/sh
cd ~/game_servers/left_4_dead
screen -dmS l4d1 ./l4d1.sh

Script 2: l4d1.sh

#!/bin/sh

PORT=27017

echo "Please run this script via screen!"
echo "Server start in 10s, press Ctrl-C to abort."
# sleep 10

while true
do
  echo "*** Terminating servers running on port $PORT..."
  kill `ps -fu j0hn | grep "port $PORT" | grep -v grep | awk '{print $2}'`
  sleep 2

  echo "*** Updating Steam..."
  ./steam

  echo "Updating L4D1 ..."
  ./steam -command update -game left4dead -dir .

  echo "Starting L4D1 server ..."
  cd l4d
  ./srcds_run -debug -game left4dead -port $PORT +map
l4d_hospital01_apartment
  cd ..

  echo "Waiting 10s before looping, hit Ctrl-C to stop the script ..."
  sleep 10
done

And similar for the L4D2 server.

2009/11/25 Joonas Lehtolahti <[email protected]>

> How are you specifying the game port for the servers exactly?
>
>
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux

Reply via email to