Register for your free account! | Forgot your password?

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

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

Advertisement



[Hilfe] Corerestart Script

Discussion on [Hilfe] Corerestart Script within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Dec 2009
Posts: 89
Received Thanks: 11
[Hilfe] Corerestart Script

Hallo Com,

hab mir mal das Script von Aiir angeschaut und finde es eigentlich ein gutes Release.

Habs dann mal an die Gamefiles von Daroo angepasst jedoch bekomme ich immer ein unexpecting then wenn ich es ausführen will.

Komischerweise bekomm ich die selbe Fehlermeldung, wenn ich das orginalscript auch benutze.

Da ich von Shellprogrammierung nicht all zu viel verstehe wollte ich euch Fragen, ob jmd. den Fehler kennt.

PHP 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 
Der Fehler:
PHP Code:
restart.sh46Syntax error"fi" unexpected (expecting "then"
Danke euch
Eryth92 is offline  
Old 07/08/2012, 22:27   #2
 
ChipSalen's Avatar
 
elite*gold: 5
Join Date: May 2009
Posts: 141
Received Thanks: 11
Push.

selbe problem
ChipSalen is offline  
Reply

Tags
core restart, gamecore crash, restart script


Similar Threads Similar Threads
[HILFE] Brauche Hilfe bei PHP Script für FACEBOOK APP
01/16/2012 - General Coding - 0 Replies
Gehört in eine andere Sektion -
SCRIPT HILFE!
05/20/2011 - Off Topic - 2 Replies
Hallo, ich habe noch nie gescriptet, will aber für Urban Rivals ein "Klick bot" machen. :D Dafür bräuchte ich aber irgendein Programm mit tutorial. :mofo: Könnt ihr mir weiterhilfen? :confused: Danke im vorraus :handsdown:
Hilfe bei Script
01/24/2011 - AutoIt - 2 Replies
Hallo, ich habe ein problem und zwar willl ich gerade einen wow logg in bot basteln nur komm ich nicht weiter und zwar soll wenn ich die die Inputbox etwas reinschreibe eine ini datei erstellt werden und die soll wenn wow gestartet wurde abgerufen werden und halt in den acc einloggen Ich hab so angefangen #include <ButtonConstants.au3> #include <EditConstants.au3>
PHP Script Hilfe
06/16/2010 - Web Development - 1 Replies
Hi, weiß wer was ich falsch mache? <html> <head> <title>Geschenk</title> </head> <body> <form> <textarea name=Putin rows=1 cols=20></textarea> <p>



All times are GMT +1. The time now is 13:17.


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