Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/bash
- # quakestart.sh - quake live multiple server spawning script.
- # created by Thomas Jones on 09/09/15.
- # Defining variables.
- export location="Chicago"
- gameport=`expr $1 + 27960`
- rconport=`expr $1 + 28960`
- servernum=`expr $1 + 0`
- # Executing a random delay to stagger the spawning of each server, as
- # supervisord starts everything at once, thus lowering the load surge.
- # echo "Sleeping for random delay (5-30 seconds) before spawning..."
- # sleep $(((RANDOM%120)+10))
- # No-one cares about this anymore, sleeping on a per-server basis now?
- # Finally works, should mean that all servers should be up after 45 seconds.
- # Starts servers with different settings, based off the process number parsed
- # as argument 1 by supervisord.
- echo "========== QuakeStart.sh has started. =========="
- echo "========= $(date) ========="
- #echo "arg1 is equal to $1"
- cd ~/steamcmd/steamapps/common/qlds/baseq3
- if [ $1 -eq 1 ]
- # starting Deathrows CA 1 and 2...
- then
- echo "Starting clan arena server 1 or 2..."
- exec $qPathToStartScript \
- +set net_strict 1 \
- +set net_port $gameport \
- +set sv_hostname "Chi - Clan Arena" \
- +set zmq_rcon_enable 1 \
- +set zmq_rcon_password "password" \
- +set zmq_rcon_port $rconport \
- +set zmq_stats_enable 1 \
- +set zmq_stats_password "password" \
- +set zmq_stats_port $gameport \
- +set sv_tags "Deathrows" \
- +set g_voteFlags "13320" \
- +set g_allowSpecVote 1 \
- +set g_allowVoteMidGame 1 \
- +set bot_enable 1 \
- +set bot_nochat 1 \
- +set g_accessFile "access.txt" \
- +set sv_mappoolFile "mappool.txt" \
- +set fs_homepath ~/.quakelive/$gameport
- elif [ $1 -eq 2 ]
- # starting Deathrows CA 1...
- then
- echo "Starting Deathrows FT 1..."
- exec $qPathToStartScript \
- +set net_strict 1 \
- +set net_port $gameport \
- +set sv_hostname "Chi - FT" \
- +set zmq_rcon_enable 1 \
- +set zmq_rcon_password "password" \
- +set zmq_rcon_port $rconport \
- +set zmq_stats_enable 1 \
- +set zmq_stats_password "password" \
- +set zmq_stats_port $gameport \
- +set sv_tags "Freeze Tag" \
- +set g_voteFlags "13320" \
- +set g_allowSpecVote 1 \
- +set g_allowVoteMidGame 1 \
- +set bot_enable 1 \
- +set bot_nochat 1 \
- +set g_accessFile "access.txt" \
- +set sv_mappoolFile "mappool.txt" \
- +set fs_homepath ~/.quakelive/$gameport
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement