<html>
<body>
<br>
See below:<br><br>
<br>
At 03:55 AM 12/9/2004, you wrote:<br>
<blockquote type=cite class=cite cite>I would rather use screen than
nohup. preventing oneself from getting<br>
access to the console is something at least I wouldnt 
recommend.<br><br>
screen -dmS ./cod_lnxded +set net_ip xxx +set net_port xxx +set<br>
sv_punkbuster 1 +set dedicated 2 +exec server.cfg<br><br>
screen -list<br><br>
screen -r PID<br><br>
Just my 2 cents, and rather than sym-links, try hardlinks for all
the<br>
pk3 files, and create actual copies of the binaries to each 
instance<br>
rather than sym-linking.&nbsp; Or you can chmod the main binary so
that<br>
each execution of it will start itself in its own memory space and
not<br>
clobber other games running the same binary in the same memory
space.<br>
</blockquote><br><br>
You have been getting some excellent advice and wonderful help.<br>
Was doing great, up until this part here.&nbsp; (BTW, I also use
screen,<br>
is it more reliable than nohup.&nbsp; nohup protects against a Hangup
signal<br>
(-15), and there are other signs you wish to protect against. In
addition,<br>
I have seen instances, depending on execution scheduling, where the<br>
executable WILL receive a HUP signal if you terminate the shell
prior<br>
to it disassociating the controlling terminal from the process. (See
nohup(1))<br>
(In simpler terms, a nohup is simply fork(2)s a child, turns off certain
signal<br>
processing, and then disassociates itself from your shell process, making
its<br>
parent process your shell's parent process which is often process 1
init.<br><br>
With regards to copying executables, or using the same code. PLEASE<br>
use the same executable. You can use a hardlink if on the same
filesystem,<br>
(otherwise a ln will copy the file anyway), or symbolic. I recommend the
hard<br>
link.&nbsp; In addition, set the sticky bit on the executable.<br><br>
This will induce less lag, as the executable is, on execution, copied to
swap<br>
space only once for ALL instances, and not each time it is spawned. In
addition<br>
depending on the number of instances, there is a memory 
savings.<br><br>
Linux will share text pages, however your Heap and Stack will be
allocated in a<br>
separate memory segment.&nbsp; If a process sharing an executable
attempts to<br>
write said executable, a fork_on_write(2) will be executed. (See
vmstat(1))<br>
Thus, if a single process goes hog wild, it will NOT impact readonly text
(aka<br>
code) (other processes sharing the same readonly text), at all.<br><br>
This does not mean if you have a BUG in the code, and one process
hits<br>
it, and goes in to a spin loop it won't impact your other processes. In
fact,<br>
regardless of what you do, if you have that type of bug, the result will
be<br>
the same whether you are running the same code or two
executables.<br><br>
Loading the text pages in to memory once saves memory, and has NO<br>
negative impact at all.&nbsp; I spent much of my early career writing
kernel code<br>
so I know all too often how this works.&nbsp; (Yes... Multi-threaded link
libraries<br>
especially!)<br><br>
But take all the other good stuff people have been providing to you.
They<br>
know their stuff. (Scripts even!&nbsp; can't get better than
that!!)&nbsp; Keep them coming...<br>
I just grabbed another Dual P4 3.0, and am migrating off two older
single<br>
pents. I am lazy and given a stub of code.... heck, Ill use it!
;-))<br><br>
Good luck to you.<br><br>
<br><br>
<br><br>
<br>
<blockquote type=cite class=cite cite>On Wed, 8 Dec 2004 13:17:06 -0600,
Jay Vasallo &lt;jayco1@charter.net&gt; wrote:<br>
&gt; Good question. I am waiting for the linux version also. I am not
sure about<br>
&gt; the homiepath in MOH-PA. I know if it has PB within the code, it
will have<br>
&gt; the homepath. Sorry i can't be of much help.<br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; ----- Original Message -----<br>
&gt; From: &quot;hotrod deathtoll&quot;
&lt;hotrod_death_toll@yahoo.com&gt;<br>
&gt; To: &lt;cod@icculus.org&gt;<br>
&gt; Sent: Wednesday, December 08, 2004 1:05 PM<br>
&gt; Subject: Re: [cod] Multiple COD:UO servers on the same box<br>
&gt; <br>
&gt; &gt; Okay I didn't realize the command line switches<br>
&gt; &gt; fs_basepath and fs_homepath existed.&nbsp; That rocks!!&nbsp;
Do<br>
&gt; &gt; those command line switches work in MOHAA:SH too?<br>
&gt; &gt; Sorry for the MOH ques on the cod page but my server<br>
&gt; &gt; is running both.<br>
&gt; &gt;<br>
&gt; &gt; John<br>
&gt; &gt;<br>
&gt; &gt; --- Jay Vasallo &lt;jayco1@charter.net&gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt;&gt; You can always keep the lines nice and short and<br>
&gt; &gt;&gt; just end the line with a forwared slash \ .<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Example<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; nohup ./cod_lnxded +set fs_basepath /usr/games/cod<br>
&gt; &gt;&gt; +set fs_homepath /home/hyppe/cod \<br>
&gt; &gt;&gt; +exec tdm_mp.cfg +set dedicated 2 +map_rotate +set<br>
&gt; &gt;&gt; net_ip xxx.xxx.xxx.xxx \<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; What happens if you make a mistake and the mistake<br>
&gt; &gt;&gt; is on the start up line and you can't see it cause<br>
&gt; &gt;&gt; it is scrolled off the screen? This way you can see<br>
&gt; &gt;&gt; all lines in front of you at all times<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; =o)<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;&nbsp;&nbsp; ----- Original Message -----<br>
&gt; &gt;&gt;&nbsp;&nbsp; From: Fredric Ollikala<br>
&gt; &gt;&gt;&nbsp;&nbsp; To: cod@icculus.org<br>
&gt; &gt;&gt;&nbsp;&nbsp; Sent: Wednesday, December 08, 2004 12:02
PM<br>
&gt; &gt;&gt;&nbsp;&nbsp; Subject: Re: [cod] Multiple COD:UO servers on
the<br>
&gt; &gt;&gt; same box<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;&nbsp;&nbsp; My question too. Below is an example what one
of<br>
&gt; &gt;&gt; my startup scripts looks like.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;&nbsp;&nbsp; #!/bin/sh<br>
&gt; &gt;&gt;&nbsp;&nbsp; #<br>
&gt; &gt;&gt;&nbsp;&nbsp; # cod startup script<br>
&gt; &gt;&gt;&nbsp;&nbsp; #<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;&nbsp;&nbsp; cd /usr/games/cod<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;&nbsp;&nbsp; nohup ./cod_lnxded +set fs_basepath
/usr/games/cod<br>
&gt; &gt;&gt; +set fs_homepath /home/hyppe/cod +exec tdm_mp.cfg<br>
&gt; &gt;&gt; +set dedicated 2 +map_rotate +set net_ip<br>
&gt; &gt;&gt; xxx.xxx.xxx.xxx +set net_port 28960 &gt;/dev/null
2&gt;&amp;1<br>
&gt; &gt;&gt; &amp;&nbsp; &lt;--- should be on the same line as above,
the<br>
&gt; &gt;&gt; line was too long and was cut into 2.<br>
&gt; &gt;&gt;&nbsp;&nbsp; ps ax |grep tdm_mp.cfg |grep -v grep |awk
'{print<br>
&gt; &gt;&gt; $1;}' &gt; /home/hyppe/cod/pid.tdmcod<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;&nbsp;&nbsp; exit 0<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;&nbsp;&nbsp; fs_basepath is where the game is
installed.<br>
&gt; &gt;&gt;&nbsp;&nbsp; fs_homepath is where all user 
configfiles,<br>
&gt; &gt;&gt; logfiles, mods and so on goes.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;&nbsp;&nbsp; Just put the text in a file called
&quot;codtdm&quot; or<br>
&gt; &gt;&gt; whatever and do &quot;chmod +x codtdm&quot;. To execute
it<br>
&gt; &gt;&gt; just type ./codtdm<br>
&gt; &gt;&gt;&nbsp;&nbsp; This will launch the server into the
background<br>
&gt; &gt;&gt; and also create a file containing the server pid<br>
&gt; &gt;&gt; (process id).<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;&nbsp;&nbsp; I use another script that runs every 10
minutes<br>
&gt; &gt;&gt; using Crontab, to check if the server is still<br>
&gt; &gt;&gt; running, if not it will be restarted executing the<br>
&gt; &gt;&gt; script above.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;&nbsp;&nbsp; Best regards:<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;&nbsp;&nbsp; Fredric Ollikkala<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;&nbsp;&nbsp; ----- Original Message -----<br>
&gt; &gt;&gt;&nbsp;&nbsp; From: &quot;Jay Vasallo&quot;
&lt;jayco1@charter.net&gt;<br>
&gt; &gt;&gt;&nbsp;&nbsp; To: &lt;cod@icculus.org&gt;<br>
&gt; &gt;&gt;&nbsp;&nbsp; Sent: Wednesday, December 08, 2004 6:41 
PM<br>
&gt; &gt;&gt;&nbsp;&nbsp; Subject: Re: [cod] Multiple COD:UO servers on
the<br>
&gt; &gt;&gt; same box<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt; Symlink? Why?<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt; ----- Original Message -----<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt; From: &quot;hotrod deathtoll&quot;<br>
&gt; &gt;&gt; &lt;hotrod_death_toll@yahoo.com&gt;<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt; To: &lt;cod@icculus.org&gt;<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt; Sent: Wednesday, December 08, 2004 11:37
AM<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt; Subject: RE: [cod] Multiple COD:UO servers
on<br>
&gt; &gt;&gt; the same box<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt; Thanks David.&nbsp; That's what I
wanted to know<br>
&gt; &gt;&gt; because I<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt; wanted to keep it clean like you guys
are<br>
&gt; &gt;&gt; running<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt; yours.<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt; Thanks again.<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt; John<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt; --- david@fuess.net wrote:<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;&gt; That's how our servers are setup.
We have a<br>
&gt; &gt;&gt; common<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;&gt; install location for<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;&gt; all games, then symlink the shared
components<br>
&gt; &gt;&gt; into<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;&gt; each games' home<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;&gt; directory. The configuration files
are local<br>
&gt; &gt;&gt; to the<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;&gt; game so you can run<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;&gt; different configs on each game
server if you<br>
&gt; &gt;&gt; like.<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;&gt; We normally designate<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;&gt; one a Public server that we keep
&quot;stock&quot;, one<br>
&gt; &gt;&gt; a<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;&gt; &quot;Custom&quot; server that
may<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;&gt; have custom mods or maps, and
another a<br>
&gt; &gt;&gt; &quot;Match&quot;<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;&gt; server that is<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;&gt; configured in accordance with the
rules of the<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;&gt; competition league (TWL,<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;&gt; OGL, whatever).<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;&gt; Dave<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;&gt; &gt; -------- Original Message
--------<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;&gt; &gt; Subject: RE: [cod] Multiple
COD:UO servers<br>
&gt; &gt;&gt; on the<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;&gt; same box<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;&gt; &gt; From: &quot;Darren
Rathbone&quot;<br>
&gt; &gt;&gt; &lt;darren@rathbone.org.uk&gt;<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;&gt; &gt; Date: Tue, December 07, 2004
6:38 am<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;&gt; &gt; To: cod@icculus.org<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;&gt; &gt;<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;&gt; &gt; Certainly can, as long as the
servers are<br>
&gt; &gt;&gt; using<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;&gt; different ports and/or IPs<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;&gt; &gt;<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;&gt; &gt; Rgds<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;&gt; &gt; PapaLaz<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;&gt; &gt; {tTs.}'TechSpot.co.uk<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;&gt; &gt;<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;&gt; &gt; -----Original
Message-----<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;&gt; &gt; From: hotrod deathtoll<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;&gt;
[<a href="mailto:hotrod_death_toll@yahoo.com" eudora="autourl">mailto:hotrod_death_toll@yahoo.com</a>]<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;&gt; &gt; Sent: 07 December 2004
14:34<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;&gt; &gt; To: cod@icculus.org<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;&gt; &gt; Subject: [cod] Multiple
COD:UO servers on<br>
&gt; &gt;&gt; the same<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;&gt; box<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;&gt; &gt;<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;&gt; &gt; Can you have two gameserver
processes use<br>
&gt; &gt;&gt; the same<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;&gt; &gt; binaries and .pk3's without
any problem??<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;&gt; &gt;<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;&gt; &gt;<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;&gt; &gt;<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;&gt; &gt;
__________________________________<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;&gt; &gt; Do you Yahoo!?<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;&gt; &gt; Yahoo! Mail - Helps protect
you from nasty<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;&gt; viruses.<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;&gt; &gt;
<a href="http://promotions.yahoo.com/new_mail" eudora="autourl">http://promotions.yahoo.com/new_mail</a><br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;
__________________________________<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt; Do you Yahoo!?<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt; Read only the mail you want - Yahoo!
Mail<br>
&gt; &gt;&gt; SpamGuard.<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;
<a href="http://promotions.yahoo.com/new_mail" eudora="autourl">http://promotions.yahoo.com/new_mail</a><br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;&gt;<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;<br>
&gt; &gt;&gt;&nbsp;&nbsp; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; __________________________________________________<br>
&gt; &gt; Do You Yahoo!?<br>
&gt; &gt; Tired of spam?&nbsp; Yahoo! Mail has the best spam protection
around<br>
&gt; &gt;
<a href="http://mail.yahoo.com/" eudora="autourl">http://mail.yahoo.com</a><br>
&gt; &gt;<br>
&gt; </blockquote>&gt; <br>
S2----------------------------------------------------------------------------------<br>
Mark J. DeFilippis,&nbsp; Ph. D
EE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
defilm@acm.org<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
defilm@ieee.org<br><br>
<br>
</body>
</html>