[mohaa] mohaa and pid's

Josh Berry josh at chickenmonkey.co.uk
Fri Aug 22 09:15:38 EDT 2003


You can't assign multiple processes to a single PID (as it is a process ID and therefore unique).

You also cannot really start multiple servers in the same screen. However, if all he wants to do is kill multiplke processes he can use:

    killall -9 mohaa_lnxded

If the servers are just being run as themselves or

    killall -9 screen

If the servers are running under screen. Personally, I have a script which checks to see if the server is running every 60 seconds and starts it if it isn't. This is run under screen so when you do "killall -9 mohaa_lnxded" it kills all the moh processes, which then restart after 60 seconds (handy for adding new maps or changing mods)

Regards

Josh

----- Original Message ----- 
  From: Shaun Green 
  To: mohaa at icculus.org 
  Sent: Friday, August 22, 2003 1:41 PM
  Subject: [mohaa] mohaa and pid's


  Not really sure what the actual purpose of this is but Im trying to help someone out.   Question asked, Any way to assign a pid to multiple mohaa servers under linux?  From what i can understand im guessing he wants to kill all instance's at the same time for whatever reason not really sure.  

  Could you use the screen command and script to start all the mohaa servers and when needed just kill the screen process to end all mohaa servers.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://icculus.org/pipermail/mohaa/attachments/20030822/3128078c/attachment.htm>


More information about the Mohaa mailing list