Jump to content
GIGN Forum

Autorestart On Crash


Recommended Posts

Bija man kādreiz fails caur kuru palaižot iedarbina serveri un serveris kad nokrashojas tiek automātiski restartēts.

Tātad OS - linux

Vajadzīga lietiņa kas automātiski restartētu serveri kad serveris nokrašojas.

Izmeklēju google, bet tur tik par css.

Link to comment
Share on other sites

Tātad OS - linux

Vajadzīga lietiņa kas automātiski restartētu serveri kad serveris nokrašojas.

Izmeklēju google, bet tur tik par css.

Uztaisi jaunu text documentu taja mape kur ir hlds.exe piem. C:\serveris

Iepeisto šo te:

@echo off

cls

echo Protecting HLDS from crashes...

title HLDS CrashGuard

:hlds

echo (%time%) HLDS started...

start /wait /realtime hlds.exe -console -game cstrike +map de_dust2 -tickrate 66 +fps_max 600 +maxplayers 21 +port 27015 +sv_lan 0

echo (%time%) WARNING: HLDS closed or crashed! Restaring...

goto hlds

Un spied file-->save as-->nosaukums.bat un seivojam!

Uztaisam shortcut un liekam uz desktopa.....

Sakties pats tur visu, nomaini playeru skaitu mapi utt...

Link to comment
Share on other sites

Nebūtu arī labs?

@echo off
cls
echo Protecting srcds from crashes...
echo If you want to close srcds and this script, close the srcds window and type Y depending on your language followed by Enter.
title srcds.com Watchdog
:srcds
echo (%time%) srcds started.
start /wait srcds.exe -console -game cstrike +map de_dust +maxplayers 16
echo (%time%) WARNING: srcds closed or crashed, restarting.
goto srcds

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...