Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 12:48

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



The Best "auto.sh" Is This?

Discussion on The Best "auto.sh" Is This? within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
mklive's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 56
Received Thanks: 20
Question The Best "auto.sh" Is This?

Hello,

I Want To Know If Someone Can Say To Me If Is Any "auto.sh" Better Than This:

Code:
#!/bin/sh
# Default flags to pass to the MUD server (see admin.txt for a description
# of all flags).
#############################################################################

SERVER_NAME=./auth_server

while ( : ) do

  DATE=`date`
  echo "autoauth starting auth $DATE" >> syslog
  echo "running" $SERVER_NAME >> syslog

#  cp -f $SERVER_NAME $SERVER_NAME.current
  $SERVER_NAME

  rm cores/core.1
  mv cores/core.2 cores/core.1
  mv cores/core.3 cores/core.2
  mv cores/core.4 cores/core.3
  mv cores/core.5 cores/core.4
  mv cores/core.6 cores/core.5
  mv $SERVER_NAME.core cores/core.6

 # rm profiles/profile.1
 # mv profiles/profile.2 profiles/profile.1
 # mv profiles/profile.3 profiles/profile.2
 # gprof $SERVER_NAME.current $SERVER_NAME.gmon > profiles/profile.3

  if [ ! -r .fastboot ]; then
    sleep 3
  else
    rm .fastboot
    sleep 3
  fi

  if [ -r .killscript ]; then
    DATE=`date`;
    echo "autoscript killed $DATE"  >> syslog
    rm .killscript
    exit
  fi

  while [ -r pause ]; do
    sleep 60
  done

done
And On The FreeBSD SSH We Use This Command To Active The Screen:
Code:
screen -A -m -d -S authserver ./auto.sh
I Use The .Kay ServerFiles.

Someone Can Tell Me If Is Any Better Away To Use Remove The "Login Bug"?
With This Command And "auto.sh" File, My "Login Bug" Only Exists By a Few 30 Seconds
mklive is offline  
Old 09/24/2011, 21:41   #2
 
elite*gold: 0
Join Date: Aug 2011
Posts: 14
Received Thanks: 2
Olá Micael. Olha, se calhar até nem te interessa muito mas pode editar o teu auto.sh de forma a acelerares um pouco o processo de inico do servidor. Passo a explicar: não sei se já reparaste mas quando tu das o comando ./start, repete-se muito uma frase que é
rm cores/core.1 file or directory not found
mv cores/core.2 cores/core.1 file or directory not found
mv cores/core.3 cores/core.2 file or directory not found
mv cores/core.4 cores/core.3 file or directory not found
mv cores/core.5 cores/core.4 file or directory not found
mv cores/core.6 cores/core.5 file or directory not found
ou algo parecido. podes eliminar esta parte do auto.sh :
rm cores/core.1
mv cores/core.2 cores/core.1
mv cores/core.3 cores/core.2
mv cores/core.4 cores/core.3
mv cores/core.5 cores/core.4
mv cores/core.6 cores/core.5
mv $SERVER_NAME.core cores/core.6
Isto acelera um pouco o servidor e torna-o ligeiramente mais leve. Eu uso o auto.sh que vem com os files da RAIN. não estudei ainda o teu auto mas julgo que também podes remover esta parte:
# rm profiles/profile.1
# mv profiles/profile.2 profiles/profile.1
# mv profiles/profile.3 profiles/profile.2
# gprof $SERVER_NAME.current $SERVER_NAME.gmon > profiles/profile.3
Já que es portugues (assim como eu^.^) podes aproveitar e no final do ficheiro, substituis esta sintax: "autoscript killed $DATE" por algo como "O servidor parou a $DATE(que será substituido pela data...) Assim o teu syslog fica mais PT-PT XD.
Bem, espero ter ajudado.
PS: Parabéns pelo grande servidor que tens. Já pensei candidatar-me a GM só pela desportiva mas penso que não vale a pena até porque já não jogo ha quase um ano. foi só mesmo quando o server abriu e nos 1ºs meses.
segiop13 is offline  
Reply

Tags
auth, auth.sh, bug, login, screen


Similar Threads Similar Threads
Kann mir bitte jemmand eine Hmachi HP erstellen """""SOS HELP""""
09/15/2010 - Metin2 Private Server - 11 Replies
SO wie der Titel schon sagt ich suche einen der mir per Teamviwer eine hp machen kann habe schon alles ausprobiert aber es klappt nie!!!! PLS HELP...



All times are GMT +2. The time now is 12:48.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.