<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=Arial size=2>My question too. </FONT><FONT face=Arial
size=2>Below is an example what one of my startup scripts looks
like.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#ff0000 size=2>#!/bin/sh</FONT></DIV>
<DIV><FONT face=Arial color=#ff0000 size=2>#</FONT></DIV>
<DIV><FONT face=Arial color=#ff0000 size=2># cod startup script</FONT></DIV>
<DIV><FONT face=Arial color=#ff0000 size=2>#</FONT></DIV>
<DIV><FONT face=Arial color=#ff0000 size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#ff0000 size=2>cd /usr/games/cod</FONT></DIV>
<DIV><FONT face=Arial color=#ff0000 size=2></FONT> </DIV>
<DIV><FONT color=#ff0000><FONT face=Arial size=2>nohup ./cod_lnxded +set
fs_basepath /usr/games/cod +set fs_homepath /home/hyppe/cod </FONT><FONT
face=Arial size=2>+exec tdm_mp.cfg +set dedicated 2 +map_rotate +set net_ip
xxx.xxx.xxx.xxx +set net_port 28960 >/dev/null 2>&1 & <FONT
color=#000000><--- should be on the same line as above, the line was too long
and was cut into 2. </FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial color=#ff0000 size=2>ps ax |grep tdm_mp.cfg |grep -v grep
|awk '{print $1;}' > /home/hyppe/cod/pid.tdmcod</FONT></DIV>
<DIV><FONT face=Arial color=#ff0000 size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#ff0000 size=2>exit 0</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>fs_basepath is where the game is
installed.</FONT></DIV>
<DIV><FONT face=Arial size=2>fs_homepath is where all user configfiles,
logfiles, mods and so on goes.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Just put the text in a file called "codtdm" or
whatever and do "chmod +x codtdm". To execute it just type ./codtdm</FONT></DIV>
<DIV><FONT face=Arial size=2>This will launch the server into the background and
also create a file containing the server pid (process id).</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I use another script that runs every 10 minutes
using Crontab, to check if the server is still running, if not it will be
restarted executing the script above.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Best regards:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Fredric Ollikkala</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>----- Original Message ----- </FONT></DIV>
<DIV><FONT face=Arial size=2>From: "Jay Vasallo" <</FONT><A
href="mailto:jayco1@charter.net"><FONT face=Arial
size=2>jayco1@charter.net</FONT></A><FONT face=Arial size=2>></FONT></DIV>
<DIV><FONT face=Arial size=2>To: <</FONT><A
href="mailto:cod@icculus.org"><FONT face=Arial
size=2>cod@icculus.org</FONT></A><FONT face=Arial size=2>></FONT></DIV>
<DIV><FONT face=Arial size=2>Sent: Wednesday, December 08, 2004 6:41
PM</FONT></DIV>
<DIV><FONT face=Arial size=2>Subject: Re: [cod] Multiple COD:UO servers on the
same box</FONT></DIV>
<DIV><FONT face=Arial><BR><FONT size=2></FONT></FONT></DIV><FONT face=Arial
size=2>> Symlink? Why?<BR>> <BR>> <BR>> <BR>> ----- Original
Message ----- <BR>> From: "hotrod deathtoll" <</FONT><A
href="mailto:hotrod_death_toll@yahoo.com"><FONT face=Arial
size=2>hotrod_death_toll@yahoo.com</FONT></A><FONT face=Arial
size=2>><BR>> To: <</FONT><A href="mailto:cod@icculus.org"><FONT
face=Arial size=2>cod@icculus.org</FONT></A><FONT face=Arial size=2>><BR>>
Sent: Wednesday, December 08, 2004 11:37 AM<BR>> Subject: RE: [cod] Multiple
COD:UO servers on the same box<BR>> <BR>> <BR>>> Thanks David.
That's what I wanted to know because I<BR>>> wanted to keep it clean like
you guys are running<BR>>> yours.<BR>>> <BR>>> Thanks
again.<BR>>> <BR>>> John<BR>>> <BR>>> --- </FONT><A
href="mailto:david@fuess.net"><FONT face=Arial
size=2>david@fuess.net</FONT></A><FONT face=Arial size=2> wrote:<BR>>>
<BR>>>> That's how our servers are setup. We have a
common<BR>>>> install location for<BR>>>> all games, then
symlink the shared components into<BR>>>> each games'
home<BR>>>> directory. The configuration files are local to
the<BR>>>> game so you can run<BR>>>> different configs on
each game server if you like.<BR>>>> We normally
designate<BR>>>> one a Public server that we keep "stock", one
a<BR>>>> "Custom" server that may<BR>>>> have custom mods or
maps, and another a "Match"<BR>>>> server that is<BR>>>>
configured in accordance with the rules of the<BR>>>> competition
league (TWL,<BR>>>> OGL, whatever).<BR>>>> <BR>>>>
Dave<BR>>>> <BR>>>> > -------- Original Message
--------<BR>>>> > Subject: RE: [cod] Multiple COD:UO servers on
the<BR>>>> same box<BR>>>> > From: "Darren Rathbone"
<</FONT><A href="mailto:darren@rathbone.org.uk"><FONT face=Arial
size=2>darren@rathbone.org.uk</FONT></A><FONT face=Arial
size=2>><BR>>>> > Date: Tue, December 07, 2004 6:38
am<BR>>>> > To: </FONT><A href="mailto:cod@icculus.org"><FONT
face=Arial size=2>cod@icculus.org</FONT></A><BR><FONT face=Arial
size=2>>>> > <BR>>>> > Certainly can, as long as the
servers are using<BR>>>> different ports and/or IPs<BR>>>>
> <BR>>>> > Rgds<BR>>>> > PapaLaz<BR>>>>
> {tTs.}'TechSpot.co.uk<BR>>>> > <BR>>>> >
-----Original Message-----<BR>>>> > From: hotrod
deathtoll<BR>>>> [mailto:hotrod_death_toll@yahoo.com] <BR>>>>
> Sent: 07 December 2004 14:34<BR>>>> > To: </FONT><A
href="mailto:cod@icculus.org"><FONT face=Arial
size=2>cod@icculus.org</FONT></A><BR><FONT face=Arial size=2>>>> >
Subject: [cod] Multiple COD:UO servers on the same<BR>>>>
box<BR>>>> > <BR>>>> > Can you have two gameserver
processes use the same<BR>>>> > binaries and .pk3's without any
problem??<BR>>>> > <BR>>>> > <BR>>>> >
<BR>>>> > __________________________________ <BR>>>> >
Do you Yahoo!? <BR>>>> > Yahoo! Mail - Helps protect you from
nasty<BR>>>> viruses. <BR>>>> > </FONT><A
href="http://promotions.yahoo.com/new_mail"><FONT face=Arial
size=2>http://promotions.yahoo.com/new_mail</FONT></A><BR><FONT face=Arial
size=2>>>> <BR>>>> <BR>>> <BR>>> <BR>>>
<BR>>> <BR>>> __________________________________ <BR>>> Do you
Yahoo!? <BR>>> Read only the mail you want - Yahoo! Mail SpamGuard.
<BR>>> </FONT><A href="http://promotions.yahoo.com/new_mail"><FONT
face=Arial size=2>http://promotions.yahoo.com/new_mail</FONT></A><FONT
face=Arial size=2> <BR>>><BR>> <BR>></FONT></BODY></HTML>