Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 18:21

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

Advertisement



Core Restarter Syntax Error?

Discussion on Core Restarter Syntax Error? within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
SuchtdiggA's Avatar
 
elite*gold: 0
Join Date: Nov 2010
Posts: 21
Received Thanks: 1
Core Restarter Syntax Error?

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:
HTML Code:
#!/bin/sh

GAMEDIR="/home/game"
LOG="$GAMEDIR/logs/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
fi

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

fi


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

fi

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
SuchtdiggA 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...
[HELP]Syntax Error
11/28/2009 - Dekaron Private Server - 1 Replies
I have a problem with syntax can someone help: http://img192.imageshack.us/img192/1248/erro1m.jp g Code: USE ;
[Hilfe]Parse error: syntax error
10/27/2009 - Metin2 Private Server - 6 Replies
Also hab IS -Script per xampp on und beim einloggen kommt der fehler hier Parse error: syntax error, unexpected $end in C:\xampp\htdocs\default1.php on line 875 Help pls Thx Freaky
[HELP] Mysql Syntax Error
02/12/2009 - EO PServer Hosting - 6 Replies
hi guyz i dump my sql file " cq_action " then i used this query " delete from my2. cq_action " to clear it and remove all records , then i copy what in the dumped file , and past it on query page , and it keep give me this error http://img223.imageshack.us/img223/4476/81192104oe 1.th.jpg here is the line that might have the error INSERT INTO `cq_action` VALUES ('5220942', '5220943', '0000', '0101', '0',...
Syntax ERROR?!
10/27/2008 - General Coding - 9 Replies
hi, ich wollte an den start meines Script ein HotKeySet einfügen aber wenn ich das mache kommt: Syntax ERROR hier mein Script(beispiel): HotKeySet("{numpad1},"start") MsgBox(0,"titel","text") ich glaub ich bin zu blöd was ist da falsch?...wenn ihr meint da fehlt ein " hab ich schon probiert geht nicht, oder ich hab es an der falschen Stelle eingefügt.



All times are GMT +1. The time now is 18:22.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.