[cod] monitoring script

Jay Vasallo jayco1 at charter.net
Thu Oct 20 08:41:17 EDT 2005


>And all of you   you should remember the first day u were such bad newbies crying for help 

Nice script. You should explain it for the people who really don't understand.


  ----- Original Message ----- 
  From: support 
  To: cod at icculus.org 
  Sent: Thursday, October 20, 2005 7:12 AM
  Subject: RE: [cod] monitoring script


  Here s a script from Daniel Rudolph 

   

   

   

  #!/bin/sh 
  # 
  # Moh Server startup with automatic restart 
  # you need to kill the script to kill the server 
  # 
  # (c) Daniel Rudolph 2003 
  # junkmail at daniel-rudolph.de 
  # 
  ######################################################## 
  ######################CONFIG############################ 
  MOHPATH="/home/daniel/Mohaa" 
  CONFIGFILE="mkf.cfg" 
  LOGFILE="/home/daniel/Mohaa/log.txt" 
  SERVERIP="195.37.58.234" 
  SERVERPORT="12203" 
  OPTIONS="+set dedicated 2 +set sv_chatter 1 +exec $CONFIGFILE +set chat 1 +set developer 2 +set logfile 3" 
  ######################CONFIG END######################## 


  ##################################### 
  #if you change that change the script to!! 
  MOHEXE="mohaa_lnxded" 
  ##################################### 
  while [  true ]; do 
  T1=`ps -A | grep $MOHEXE | tail -c 4` 
  if [ ! "$T1" = "ded" ];  then 
      cd $MOHPATH 
      ./$MOHEXE +set net_ip $SERVERIP +set net_port $SERVERPORT $OPTIONS 2&> $LOGFILE 
  fi 
  done

   

   

  And all of you   you should remember the first day u were such bad newbies crying for help 

   

   


------------------------------------------------------------------------------

  De : Jay Vasallo [mailto:jayco1 at charter.net] 
  Envoyé : jeudi 20 octobre 2005 13:45
  À : cod at icculus.org
  Objet : Re: [cod] monitoring script

   

  Hey Doc,

   

  You get this working correctly on RHe4? Damn supervise won't start and I had to add this line:

   

  /bin/csh -cf '/command/svscanboot &' &

  to the /etc/rc.local file and oit works after boot up. I notice that upon install the initab is changed. I will just have to look at the code and find out why otherwise but if you did figure it out, send me the changed files if you would.

   

  Thanks in advance.

   

  Jay

  -

   

   

    ----- Original Message ----- 

    From: Mark J. DeFilippis 

    To: cod at icculus.org 

    Sent: Thursday, October 20, 2005 6:40 AM

    Subject: Re: [cod] monitoring script

     


    I sent quite a few email's out.
    Everyone got it working? No one?  Yea? Nah?

    Any help needed?  Email me off line.





    S1-------------------------------------------------------------------------------
    Mark J. DeFilippis                    defilm at acm.org
                                          defilm at ieee.org


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://icculus.org/pipermail/cod/attachments/20051020/2c6961c8/attachment.htm>


More information about the Cod mailing list