Register for your free account! | Forgot your password?

You last visited: Today at 01:52

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

Advertisement



Core Restart Script

Discussion on Core Restart Script within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
-Zhui-'s Avatar
 
elite*gold: 0
Join Date: May 2010
Posts: 895
Received Thanks: 167
Core Restart Script

Hey,

ich kriege das nicht Installiert;

Script von
PHP Code:
#!/bin/sh
SERVICE='game_m1'
START="./${SERVICE} &"
while ( : ) do
  if 
ps ax grep -v grep grep $SERVICE > /dev/null
  then
    true
  
else
    echo 
"$SERVICE is not running"
    
$START
  fi
  sleep 10
done 
Benutze Invoice.

Halt vllt einer n Tut?
-Zhui- is offline  
Old 03/02/2014, 11:28   #2

 
Aze /..'s Avatar
 
elite*gold: 220
Join Date: Oct 2011
Posts: 7,370
Received Thanks: 7,613
Quote:
Originally Posted by 3zPx View Post
Hey,

ich kriege das nicht Installiert;

Script von
PHP Code:
#!/bin/sh
SERVICE='game_m1'
START="./${SERVICE} &"
while ( : ) do
  if 
ps ax grep -v grep grep $SERVICE > /dev/null
  then
    true
  
else
    echo 
"$SERVICE is not running"
    
$START
  fi
  sleep 10
done 
Benutze Invoice.

Halt vllt einer n Tut?
PHP Code:
SERVICE='game_m1' 
Musst du abändern.

Quote:
Jede game datei brauch einen Individuellen namen (benennt eure verknüpfungen einfach um, also zb für ch1: game_ch1 or whatever)
Den tragt ihr oben ein bei Service.
Danach platziert ihr das autorestartscript einfach in den Ordner der game datei.
benennt das script um in auto.sh und gebt ihm 777 Rechte.
Es steht doch alles schon da, was soll man da großartig falsch machen?
Aze /.. is offline  
Old 03/02/2014, 11:45   #3
 
-Zhui-'s Avatar
 
elite*gold: 0
Join Date: May 2010
Posts: 895
Received Thanks: 167
Quote:
Originally Posted by #TEH.AZE' View Post
PHP Code:
SERVICE='game_m1' 
Musst du abändern.



Es steht doch alles schon da, was soll man da großartig falsch machen?
PHP Code:
auto.sh4Syntax errorword unexpected (expecting "do"
Habe nur game_m1 zu channel1 geändert.
-Zhui- is offline  
Old 03/02/2014, 11:50   #4
 
elite*gold: 0
Join Date: Aug 2013
Posts: 816
Received Thanks: 339
Mal ne kleine zwischenfrage, wenn man die ganzen Prozesse killt startet der die ja wieder sofort. Gibts dafür dann kein "Ausschalter"?
xFliege is offline  
Old 03/02/2014, 11:57   #5

 
Aze /..'s Avatar
 
elite*gold: 220
Join Date: Oct 2011
Posts: 7,370
Received Thanks: 7,613
Quote:
Originally Posted by 3zPx View Post
PHP Code:
auto.sh4Syntax errorword unexpected (expecting "do"
Habe nur game_m1 zu channel1 geändert.


Wurde genau so dort geklärt.
Aze /.. is offline  
Old 03/02/2014, 12:00   #6
 
-Zhui-'s Avatar
 
elite*gold: 0
Join Date: May 2010
Posts: 895
Received Thanks: 167
Quote:
Originally Posted by #TEH.AZE' View Post


Wurde genau so dort geklärt.
Edit:

PHP Code:
auto.sh: ./game_m1Permission denied 
-Zhui- is offline  
Reply


Similar Threads Similar Threads
Frage Core Restart
08/29/2013 - Metin2 Private Server - 2 Replies
Hey. Suche ein Core-Restart Script für meinen Server.. Kann mir da einer Helfen? Danke im Vorraus!
nach /etc/rc.d/netif restart kommt ein core fehler!
11/15/2012 - Metin2 Private Server - 10 Replies
hi ich hab eben neuen server erstellt... vorher alles gelöscht. als ich fertig war, konnte ich mich nicht einloggen. hab dann in vpc das eingegeben: /etc/rc.d/netif restart hab dann eingeloggt, und .-start eingegeben.
Restart script
12/25/2011 - Metin2 Private Server - 0 Replies
Hey. Hat mir jemand mal ein Restart script für die Game´s? weil iwie bei mir stürzt map1 komischerweiße ab un zu ab ... Und hab in der suche nix gefunden daher...
Script fur etc ... restart
05/10/2010 - Metin2 Private Server - 6 Replies
gibt es einen script der alle 40 Min /etc... eingibt
Restart script.
06/14/2006 - Silkroad Online - 26 Replies
OK here it is. First of all Download Autoit from the web. Just google it you lasy gamer. You'll need to copy the following codes to a notepad. and save them wih the exact name I am putting here. SRO_restart.au3 ;================================================ =========================== ;             Declare Variables



All times are GMT +1. The time now is 01:52.


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.