Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 13:51

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

Advertisement



[PROBLEM]core restarter

Discussion on [PROBLEM]core restarter within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
xTheSoulutionxx3's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 427
Received Thanks: 105
[PROBLEM]core restarter

hallo
hab da eine sh datei bei der vpc immer sagt:
PHP Code:
corerestarter.sh71:Syntax error"fi" unexpected (expecting "then"
datei:
PHP Code:
#!/bin/sh

GAMEDIR="/home/game"
LOG="$GAMEDIR/corerestart.log"

PIDAUTH=`ps aux | grep auth | grep -v grep | awk '{print $2;}'`
if [ 
"x$PIDAUTH!= "x" ];
then
echo "`date +%d.%m.%Y-%H:%M:%S` :: AUTH SERVER IST OKAY! PID: $PIDAUTH>> $LOG
else
echo 
"`date +%d.%m.%Y-%H:%M:%S` :: Der Auth (Login-Server) ist abgestürzt" >> $LOG
echo "`date +%d.%m.%Y-%H:%M:%S` :: Starte Auth (Login-Server) ..." >> $LOG
cd $GAMEDIR
/auth && ./auth


PIDDB
=`ps aux | grep db | grep -v grep | awk '{print $2;}'`
if [ 
"x$PIDDB!= "x" ];
then
echo "`date +%d.%m.%Y-%H:%M:%S` :: DB CORE IST OKAY! PID: $PIDDB>> $LOG
else
echo 
"`date +%d.%m.%Y-%H:%M:%S`:: Der DB Core ist abgestürzt" >> $LOG
echo "`date +%d.%m.%Y-%H:%M:%S` :: Starte DB Core & den rest des Servers ..." >> $LOG
cd $GAMEDIR
/db && ./db
cd $GAMEDIR
/auth && ./auth
cd $GAMEDIR
/channel1/game && ./game
cd $GAMEDIR
/channel1/game2 && ./game2
cd $GAMEDIR
/channel1/game61 && ./game61


PIDGAME
=`ps aux | grep game | grep -v grep | awk '{print $2;}'`
if [ 
"x$PIDFIRST!= "x" ];
then
echo "`date +%d.%m.%Y-%H:%M:%S` :: game CORE IST OKAY! PID: $PIDFIRST>> $LOG
else
echo 
"`date +%d.%m.%Y-%H:%M:%S` :: Der game Core ist abgestürzt" >> $LOG
echo "`date +%d.%m.%Y-%H:%M:%S` :: Starte game Core ..." >> $LOG
cd $GAMEDIR
/channel1/game && ./game


PIDGAME2
=`ps aux | grep game2 | grep -v grep | awk '{print $2;}'`
if [ 
"x$PIDGAME1!= "x" ];
then
echo "`date +%d.%m.%Y-%H:%M:%S` :: GAME2 CORE IST OKAY! PID: $PIDGAME1>> $LOG
else
echo 
"`date +%d.%m.%Y-%H:%M:%S` :: Der GAME2 Core ist abgestürzt" >> $LOG
echo "`date +%d.%m.%Y-%H:%M:%S` :: Starte GAME2 Core ..." >> $LOG
cd $GAMEDIR
/channel1/game2 && ./game2


PIDGAME61
=`ps aux | grep game61 | grep -v grep | awk '{print $2;}'`
if [ 
"x$PIDGAME2!= "x" ];
then
echo "`date +%d.%m.%Y-%H:%M:%S` :: GAME61 CORE IST OKAY! PID: $PIDGAME2>> $LOG
else
echo 
"`date +%d.%m.%Y-%H:%M:%S` :: Der GAME61 Core ist abgestürzt" >> $LOG
echo "`date +%d.%m.%Y-%H:%M:%S` :: Starte GAME61 Core ..." >> $LOG
cd $GAMEDIR
/channel1/game61 && ./game61


PIDGAME99
=`ps aux | grep game99 | grep -v grep | awk '{print $2;}'`
if [ 
"x$PIDGAME99!= "x" ];
then
echo "`date +%d.%m.%Y-%H:%M:%S`::  GAME99 CORE IST OKAY! PID: $PIDGAME99>> $LOG
else
echo 
"`date +%d.%m.%Y-%H:%M:%S` :: Der Game99 Core ist abgestürzt" >> $LOG
echo "`date +%d.%m.%Y-%H:%M:%S` :: Starte Game99 Core ..." >> $LOG
cd $GAMEDIR
/game99 && ./game99
fi 
fi
fi 
fi 
fi 
xTheSoulutionxx3 is offline  
Reply


Similar Threads Similar Threads
[RELEASE]CORE Restarter (Auth, DB, Game - Shell)
10/14/2012 - Metin2 PServer Guides & Strategies - 65 Replies
Hi, Update: - Folgt die Tage, da manche Verknüpfungen haben, müssen die Leute leider die Shortcuts neusetzen. Jedes Shortcut muss seinen eigenen Namen haben, also kein Name darf doppel vorkommen, sonst grept er die PIDS nicht richtig aus der Prozessliste. -- Für die, die andere Strukturen haben, können mir eine PM mit dieser senden, dann werde ich die Shell bearbeiten, oder ihr versucht es selbst. Manche haben das Problem, dass bei ihnen der Auth (Login) Server, DB Server und/oder...
Core Restarter Syntax Error?
09/07/2011 - Metin2 Private Server - 0 Replies
Hallo ,ich wollte den Core restarter von AiiR7 benutzen hab alles angepasst (Daroo files) doch es kommt immer ein syntax error: restarter.sh: 49: Syntax error: "fi" unexpected (expecting "then") Kann vill irgend wer helfen? Hier noch die shell: #!/bin/sh GAMEDIR="/home/game"
core problem
05/10/2011 - Metin2 Private Server - 11 Replies
i have this problem shown in pic http://img685.imageshack.us/img685/6315/errorbu.jp g plss hellp me :(:(:( thanks
Problem mit make /make.sh core segmentation fault core dumped Bitte hilfe
09/09/2010 - Metin2 Private Server - 8 Replies
Hey Hab n kleines Problem, wenn ich make mache um die Quests übernehmen zu lassen kommt folgender fehler: http://www.abload.de/img/fehlerservery5fp.jpg Was kann ich tun? LG Saaja



All times are GMT +2. The time now is 13:51.


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.