Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 16:10

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

Advertisement



wie installier ich den corerestarteR?

Discussion on wie installier ich den corerestarteR? within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
Equality''s Avatar
 
elite*gold: 100
Join Date: Aug 2010
Posts: 1,751
Received Thanks: 834
wie installier ich den corerestarteR?

hallo , ich habe jetz diesen code für den corerestarter
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
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/first && ./first
fi

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

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/game1 && ./game1_1

fi

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

fi

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

fi

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

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
wie installiere ich den ?
Equality' is offline  
Old 06/23/2012, 23:58   #2
 
elite*gold: 80
Join Date: Dec 2007
Posts: 2,225
Received Thanks: 4,765
In eine Shell packen und nach FreeBSD Cronjob/Crontab googeln
Prσfizσcker94 is offline  
Reply


Similar Threads Similar Threads
Corerestarter Probleme
05/07/2012 - Metin2 Private Server - 0 Replies
Hallo Liebe Freunde da mein Server immer abkackt wollte ich den corerestarter nutzen und bei mir kommt das restart.sh: 61: syntax error: "fi" unexpected (expecting "then") wichtig mein server crashen die cores immer Ich benutze die kay 2010 files mit 2011 game Habe es auch mit 2011 files probiert Wer mir die Restart.sh zum laufen bringt bekommt nen bissl epvp gold Leute es eilt bitte 1er wird es doch wohl wissen.
Woltlab - Installier Service
09/16/2011 - elite*gold Trading - 6 Replies
http://img148.imageshack.us/img148/9707/wbb.jpg Moin Leute, ich biete euch hier meinen WBB - Installations Service an. Webspace: Hauptsächlich Installiere ich die WBB - Forums auf dem Webspace Anbieter http://www.funpic.de da er bis zu 5 GB Speicherkapazität und fast unbegrenzt Traffic besitzt.
Installier Fehler
02/28/2011 - World of Warcraft - 2 Replies
Ich Hoffe ich bin hier im richtigen Unterforum Gelandet. Und zwar hab ich mein WoW Deinstalliert. Jetz wollte ich es wieder per Cd Installieren aber meine Classic Cd ist Kaputt. Bei Battle.net kann ich es zwar runterladen abeeer ich bin da irgendwie automatisch auf 4.0.3 was mir aber nichts bringt weil ich auf einem Privat Server spielen Möchte. Weiß jemand was ich machen könnte? .< DANKE!
Installier probleme
04/06/2010 - World of Warcraft - 2 Replies
Hallo Leute ich lad mir grad wow von der offiziellen webseite runter mein problem ist folgendes: mein installer ist abgestürtzt wegen nem c++ library runtime error aber der installer fängt von der gleichen stelle an und jetz hab ich auf dem desktop 2 unvollständige dateien wie kann ich die zusammen fügen?
wie installier ich ubuntu?
01/11/2010 - Unix/Linux - 27 Replies
ich habe nun ubuntu (legal) herunter geladen. nun, weis ich nicht was ich machen muss um das betriebsystem zu installieren. könnt ihr pls sagen was ich alles dazu machen und programe brauch?



All times are GMT +2. The time now is 16:10.


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.