Jump to content

Home

port + stdout


ep1p

Recommended Posts

Hi. Im running 2 servers on the one machine at the moment, but they both seem to want to open on the same port. Both use an identical startup script less port + dir variables as you can see here:

 

#!/bin/sh

 

dir="/servers/jk2_02/"

port="28080"

ip="xx.xx.xx.xx"

players="20"

map="ffa_bespin"

 

[snip]

 

./jk2ded +set sv_maxclients $players +set net_ip $ip +net_port $port +map $map +exec server.cfg 2>&1 >/dev/null

 

I can get it to bind to the correct IP like that, but it always loads the second server onto 28070 instead of 28080

 

Also, how can I stop the server dumping all output to stdout when it loads.. /dev/null be much nicer ;-) (and I don't want to use screen).

 

cheers.

 

john

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...