12-22-2008, 07:21 PM
вставь в батник етот код.
GameServer
GameServer
Код:
@echo off
:start
TITLE L2F Game Server
echo %DATE% %TIME% Game server is running !!! > gameserver_is_running.tmp
echo Starting L2F Game Server.
echo.
rem ======== Optimize memory settings =======
rem Minimal size with geodata is 1.5G, w/o geo 1G
rem Make sure -Xmn value is always 1/4 the size of -Xms and -Xmx.
rem -Xms and -Xmx should always be equal.
rem ==========================================
java -Dfile.encoding=UTF-8 -Xincgc -Xms1024m -Xmx1536m -cp bsf.jar;bsh-2.0.jar;javolution.jar;c3p0-0.9.1.2.jar;scripts.jar;mysql-connector-java-5.1.6-bin.jar;l2fserver.jar;jython.jar;rrd4j-2.0.1.jar ru.l2f.gameserver.GameServer
if ERRORLEVEL 2 goto restart
if ERRORLEVEL 1 goto error
goto end
:restart
echo.
echo Admin Restart ...
echo.
goto start
:error
echo.
echo Server terminated abnormaly
echo.
:end
echo.
echo server terminated
echo.
del gameserver_is_running.tmp
pause