[mohaa] Question about server
Steve Pirk
orion at deathcon.com
Fri Feb 14 13:12:30 EST 2003
I just start my server with screen:
#!/bin/sh
cd /games/mohaa
echo "starting server..."
screen -S mohaa ./mohaa_lnxded +set dedicated 2 +set sv_pure 1 +set \
com_hunkmegs 32 +set logfile 2 +set vm_game 2 +set g_forcerespawn 0 +exec moh.cfg
This runs the server in the current window. Type:
<CTRL>a d
to detach from the screen session... Server stays running.
To re-attach, type
screen -r
and this will produce a list of screens:
orion at orion:/games/quake3$ screen -r
There are several suitable screens on:
296.ut2 (Detached)
13212.osp (Detached)
Type "screen [-d] -r [pid.]tty.host" to resume one of them.
Type <CTRL>a d
to deatch again.
--
Steve (egrep)
On Fri, 14 Feb 2003, Josh Berry wrote:
> > ok now question 2... When i'm firing up the server i wont get back on my
> console. How can i do that so the server is running on background (The &
> doesn't help because the server is stop working then).
>
> I can help you with the second part, all you need to do is run the server as
> a deamon. On my servers I use the following script called RUNGAME.sh to run
> the servers so that they restart if they die and e-mail you to let you know
> about it, you dont need all of this by the way, just the bit at the bottom:
>
> #!/bin/sh
> export
> LD_LIBRARY_PATH=/usr/local/games/MOHAA:$LD_LIBRARY_PATH
>
> while true
> do
> N=`ps -ef | grep mohaa_lnxded | grep server.cfg | grep -v grep |
> wc -l`
> if [ $N -eq 0 ]
> then
>
> cd /usr/local/games/MOHAA
> ./mohaa_lnxded +set dedicated 2 +set net_IP 212.159.6.206 +set cheats 0
> +set ui_console 1 +set sv_maxclients 20 +exec server.cfg &
>
> cat email_team | /usr/sbin/sendmail your at email.address
>
> fi
> sleep 60
> done
>
> e-mail team is just a text file like this:
>
> To: (your e-mail address)
> From: MOHAA Games Server
> Subject: Medal of Honour AA Server - Team DM
>
> "This process has died and has been re-started on (server name)"
>
> Then the important bit... run the script as a deamon like so:
>
> ./RUNGAME.sh 2&>1 &
>
> If you want to stop the game use
>
> killall -g RUNGAME.sh
>
> You could, of course, use the mohaa startup line and run it as a deamon
> using the '2&>1 &' bit. Its up to you.
>
> Regards
>
> Josh
> --
> | Josh Berry Unmetered & ADSL solutions
> | Technical Support for Home & Business
> | PlusNet Technologies Ltd. @ http://www.plus.net
> ----- My Referrals - It pays to recommend PlusNet -----+
>
> ----- Original Message -----
> From: <quint at kaleplek.net>
> To: <mohaa at icculus.org>
> Sent: Friday, February 14, 2003 12:36 PM
> Subject: [mohaa] Question about server
>
>
> > All,
> >
> > I think this 2 question is stuppid in you're eyes, but i'm getting
> > desperate. After 3 long nights (upon 4 o'clock in the morning) still my
> > server is not up.
> >
> > Here are my questions :
> >
> > 1. When i startup my server everything is working fine, but the server is
> > not shown in gamespy or in mohaa itself. Now you think oooh you didn't
> > open you're upd/tcp ports.. That's not the issue all the ports (found on
> > several internet sites) are open. But to be sure here they are :
> >
> > ----------- iptables ---------------------------------------
> > -A INPUT -i eth1 -p udp -m udp --dport 12300 -j ACCEPT
> > -A INPUT -i eth1 -p udp -m udp --dport 12210 -j ACCEPT
> > -A INPUT -i eth1 -p udp -m udp --dport 12201 -j ACCEPT
> > -A INPUT -i eth1 -p udp -m udp --dport 12203 -j ACCEPT
> > -A INPUT -i eth1 -p tcp -m tcp --dport 12203 -j ACCEPT
> > -A INPUT -i eth1 -p tcp -m tcp --dport 12204 -j ACCEPT
> > -A INPUT -i eth1 -p udp -m udp --dport 12204 -j ACCEPT
> > -A INPUT -i eth1 -p udp -m udp --dport 13139 -j ACCEPT
> > -A INPUT -i eth1 -p udp -m udp --dport 27900 -j ACCEPT
> > -A INPUT -i eth1 -p udp -m udp --dport 6500 -j ACCEPT
> > -A INPUT -i eth1 -p udp -m udp --dport 6515 -j ACCEPT
> > -A INPUT -i eth1 -p tcp -m tcp --dport 28900 -j ACCEPT
> > -A INPUT -i eth1 -p tcp -m tcp --dport 29900 -j ACCEPT
> > ----------------------------------------------------------
> >
> > When i do an tcpdump to see what traffic is coming in and out is see that
> > he has a connection to the master.gamespy.com
> >
> > Ok now you are getting blurry aren't you... I have the same thing, and are
> > pulling my hair out...
> >
> > Just to be sure i'm sending also my config files (i'm dutch so if you see
> > any dutch comment sorry) my startup script and an startupout.txt to let
> > you see what is happening by startup. The stranges thing is that i can
> > connect to my own server, and my key is fallidated bij gamespy (tried an
> > elegal key and got the error about cd-key).
> >
> >
> > PLEASSSSSSSSSSSSSSSSSSSSSSSSSS Help me... I'm getting gray hairs....;-)
> >
> > ok now question 2... When i'm firing up the server i wont get back on my
> > console. How can i do that so the server is running on background (The &
> > doesn't help because the server is stop working then).
> >
> >
> > Thanx
> > Q
> >
> >
>
More information about the Mohaa
mailing list