Witamy w Nieoficjalnym polskim support'cie AMX Mod X
Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
|
Restart Serwera gdy padnie
#1
Napisano 29.03.2010 20:47
Bardzo jest mi to potrzebne
Pozdrawiam
29 marzec 2010 - 20:47:
ReF... Hej panowie nie wiecie gdzie taki plugin dostane? ostatnio serw pada 2 razy dziennie
#2
Napisano 29.03.2010 20:53
Załączone pliki
#3
Napisano 29.03.2010 20:59
Chcesz wysłać do mnie PW ? użyj nazwy GoQ zamiast G[o]Q
Chcesz Kupić moduł płatności via Pukawka,Tserwery, Gamesol, Zabijaka do mojego sklepu? napisz PW cena to tylko 10 zł/sztuka
GG:6022845 (nie pomagam za free osobom ponizej rangi MoD)
#4
Napisano 29.03.2010 21:13
#5
Napisano 29.03.2010 21:15
hmm -retry do lini startowej ?
już były 2 podobne tematy i jak pisałem to co Ty wyżej zawsze mnie krytykowali, że "głupota" chociaż u mnie działa -.-
#6
Napisano 29.03.2010 21:27
powiinno smigac bo nie wiem jak plugin moze uruchomic wylaczony server jesli sam jest wtedy wylaczony
Chcesz wysłać do mnie PW ? użyj nazwy GoQ zamiast G[o]Q
Chcesz Kupić moduł płatności via Pukawka,Tserwery, Gamesol, Zabijaka do mojego sklepu? napisz PW cena to tylko 10 zł/sztuka
GG:6022845 (nie pomagam za free osobom ponizej rangi MoD)
#7
Napisano 29.03.2010 21:40
bo nie wiem jak plugin moze uruchomic wylaczony server jesli sam jest wtedy wylaczony
KOX
dlatego nie rozumiem o co biega w tym pluginie
#8
Napisano 29.03.2010 21:49
#9
Napisano 29.03.2010 21:49
./hlds_run -help Syntax: ./hlds_run [-game <game>] [-debug] [-norestart] [-pidfile] [-binary [hlds_i486|hlds_i686|hlds_amd] [-timeout <number>] [-gdb <gdb>] [-autoupdate] [-steamerr] [-ignoresigint] [-beta <version>] [-debuglog <logname>] Params: -game <game> Specifies the <game> to run. -debug Run debugging on failed servers if possible. -debuglog <logname> Log debug output to this file. -norestart Don't attempt to restart failed servers. -pidfile <pidfile> Use the specified <pidfile> to store the server pid. -binary <binary> Use the specified binary ( no auto detection ). -timeout <number> Sleep for <number> seconds before restarting a failed server. -gdb <gdb> Use <dbg> as the debugger of failed servers. -steamerr Quit on steam update failure. -beta <version> Make use of a beta version of this server from Steam -ignoresigint Ignore signal INT ( prevents CTRL+C quitting the script ). -notrap Don't use trap. This prevents automatic removal of old lock files. Note: All parameters specified as passed through to the server including any not listed.
Powiedzcie mi w którym miejscu jest tu "-restart" ?
#10
Napisano 29.03.2010 22:23
Checking bootstrapper version ... Use: steam -command <command> [parameters] [flags] Commands: update: Install or update HLDS parameters: -game <game> - Game name: use 'list' to see available games -dir <installdir> - HLDS Install dir (if dir not specified, will use value from last run of tool) flags: -verify_all - Verify all HLDS files are up to date -retry - Automatically retry every 30 seconds if the Steam Network is busy -remember_password - Remember password (if a username is supplied) For example: steam -command update -game cstrike -dir /hlds version: View installed versions list: View available games Optional parameters for all commands: -username <username> - Steam account username (only needed to access limited content) -password <password> - Steam account password (only needed to access limited content)
nie wiem o co kaman z tymi flagami, Google tak pokazało
ale głupotę wkleiłem, nawet nie przeczytałem
Użytkownik .minD edytował ten post 29.03.2010 22:27
#11
Napisano 29.03.2010 23:47
Jaki w ogóle masz dostęp do serwera? W sensie gdzieś wykupujesz czy vps/dedyk?
#12
Napisano 30.03.2010 06:59
Nie ma takiej opcji żeby serwer sam wstał po padzie. Chyba że masz dostęp SSH, troche oleju w głowie i potrafisz napisać prosty skrypt bash.
IP: ts3.cserwerek.pl
#13
Napisano 30.03.2010 07:47
#14
Napisano 30.03.2010 12:33
Może mam dostępny inny skrypt ale we wszystkich w których się spotkałem było restart w standardzie.
run() {
# Runs the steam update and server
# Loops if RESTART is set
# Debugs if server failure is detected
# Note: if RESTART is not set then
# 1. DEBUG is set then the server is NOT exec'd
# 2. DEBUG is not set the the server is exec'd
if test -n "$RESTART" ; then
echo "Auto-restarting the server on crash"
#loop forever
while true
do
# Update if needed
update
# Run the server
$HL_CMD
retval=$?
if test $retval -eq 0 && test -z "$AUTO_UPDATE"; then
break; # if 0 is returned then just quit
fi
debugcore $retval
echo "`date`: Server restart in $TIMEOUT seconds"
# don't thrash the hard disk if the server dies, wait a little
sleep $TIMEOUT
done # while true
else
# Update if needed
update
# Run the server
if test "$DEBUG" -eq 0; then
# debug not requested we can exec
exec $HL_CMD
else
# debug requested we can't exec
$HL_CMD
debugcore $?
fi
fi
}
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych