Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 30.12.2005, 23:07   #1
Firedaemon
Архивный участник
 
Join Date: Oct 2005
Posts: 267
Default [TOOL & Tutorial] isoGames Lineage II Auto Restart Syste

This is a open-source contribution from isoGames to other wonderful server admins that contribute to this open source community. We share with the intention that others will continue to share.

Code:
http://www.content-type.com/1874131891/l2reset.rar.htm
The following resources will assist you in creating a auto-restart system for your Lineage II server services. The system is designed so that each part of the Lineage II system services can be started & recovered in a certain sequence, with delay for certain services as well as toggling of the Windows Firewall so players cannot access the server until it is finished loading.

The system operates on the isoGames servers and allows for the completely unattended running of a Lineage II server system.

Upon installation, you will probably need to change paths and perhaps startup delays to match your own unique server configuration.

Requirements
[1] Windows 2003 Server (not tested on 2000)
[2] Administrator, Remote Desktop Access
[3] Firedaemon Service Manager
[4] Common Sense

Get the 1.6 Fireaemon Version at;
Code:
http://www.content-type.com/1604992254/FireDaemon.Pro.v1.6.rar.htm
Tools & Software Included
SRVRST.EXE
Console application that externally monitors the Lineage II service to make sure it is running. If it doesn't respond, it initiates a restart.

The application is a simple console application that accepts command line arguments. Running the application will print out the arguments it accepts. You can set the name of the service, how often in seconds you want it to check, and also you can even force it to restart no matter what after X seconds elapse. For instance, if you wanted to initiate an auto restart every 24 hours, you can set the seconds to 86400 and add the force restart command line option. The application can be run in multiple instances.

firewalld.bat
Closes the port that players connect through so the server load does not crash the game server while NPC is loading. Called by the "lineage" service before it starts up.

firewalls.bat
Starts the firewall deactivation service.

L2CACHED.xml
Service XML for Cached - used to create the windows service through firedaemon for easy setup. Points to cached.exe

l2reset.bat
Called when the lineage game server crashes or is restarted by the external monitoring binary. Stops NPC server. Called by the service "lineage" at service shutdown.

l2restart.xml
Service XML for external monitoring binary - Points to srvrst.exe

l2walloff.bat
Opens the port to allow players to connect. Called by service "l2walloff" and is set to have a pre-launch delay of 350 seconds.

l2walloff.xml
Service XML for batch file - Points to l2walloff.bat

lineage.xml
Service XML for "lineage" service - points to l2server.exe

lineagenpc.xml
Service XMl for "lineagenpc" service - points to l2npc.exe

Installation & Configuration
Special Connection via Remote Desktop
We run our lineage services as interactive windows services. This means that they are running as services, but you can see the applications running if you logon as the "Administrator" via the MSTSC console rather than the normal remote desktop. Logging on in this fashion will allow you to see the desktop as it would appear as if you were actually in front of the machine.

Logging on any other way through remote desktop will not give you access to see the application. Replace the text "host" in the directions below with the host name or ip address of your server box.



[1] Start->run
[2] mstsc /v:host /console
[3] OK

Copy & Extract Files
All files in this distribution are meant to be placed within the parent directory of your Lineage II executables. In other words, if your L2 server is in a location like D:\server\l2server.exe you would want to place the auto restart files in D:\

Install Firedaemon
Firedaemon is a great tool to make standard executable programs run as windows services. You can do allot with it, and is the only way to go when it comes to running your lineage services as windows services.

http://www.firedaemon.com

Consult the Firedaemon documentation for complete functionality and install procedures, but note that isoGames uses Firedaemon 1.6 rather than the new version 1.8 that you will end up using. The application looks slightly different but is mostly the same between the two versions. You will need to do your best in viewing our screen shots and applying them to the new version of Firedaemon.

Oh... and yes my nick is Firedaemon... they stole it from me I swear! :shock:

Installing Services
Open Firedaemon and click the "New Service Definition" icon.



Next, click the "Open a Service Definition File" and open "L2CACHED.xml"







Change your paths to the files if they differ from ours and then click install and then repeat the process for each additional xml file. You will need to also edit the paths in "Pre-service / Post-service" for the services as well because more than likeley, your l2 server is installed in a different location.

After you have each one imported, it should like the following;


Now, if all your services are in the stop state, simply start the "l2 restart monitor" and it will trigger the startup process of all the other services.

Also, since you are logged on as the Administrator under MSTSC, you will see the applications launch.

Note About Desktop Heap
If you are running Windows 32 Bit versions, there is an issue with Desktop heap that may or may not effect you. Windows 32 bit version only allows a maximum of 48MB to be shared between all desktops, including windows services. We have the services to run interactively with some, and non-interactive with others in order to spread out the usage of the desktop heap. Desktop heap can be a real **** and sometimes you may have to hack the registry to change the heap that is assigned to interactive and non-interactive desktops. You should not have a problem though with this config unless you have allot of NPCs with [names] longer than 25 characters. If you find you have issues that the service will not start under firedaemon but will run normally when you manually launch it, just let me know and I can try to help you out with some advice. I have spent days working through the issues so am familure with what would be wrong.
Firedaemon is offline  
Old 31.12.2005, 01:30   #2
Flamestrike
Архивный участник
 
Join Date: Aug 2005
Posts: 434
Default

O M F G - O M F G - O M F G - O M F G - O M F G - O M F G
Flamestrike is offline  
Old 31.12.2005, 08:56   #3
TheOrder
Архивный участник
 
Join Date: Sep 2005
Posts: 731
Default

Much Apreaciate it . Tnx for sharing !!!
TheOrder is offline  
Old 02.01.2006, 18:31   #4
nemchua
Архивный участник
 
Join Date: May 2005
Posts: 7
Default

worked greate, only one problem: when server crashes, lineapenpc didnt start automatically, only l2server can start.
nemchua is offline  
Old 03.01.2006, 02:08   #5
rtehfm
Архивный участник
 
Join Date: Dec 2005
Posts: 4
Default

I am having problems downloading the second file.

http://www.content-type.com/89460134...cached.exe.htm

that one to be exact.
rtehfm is offline  
Old 03.01.2006, 12:54   #6
toolpunk
Архивный участник
 
Join Date: May 2005
Posts: 2,033
Default

works for me...
if the server is full click "wait in line & download"
toolpunk is offline  
Old 03.01.2006, 13:01   #7
melwidh
Архивный участник
 
Join Date: Oct 2005
Posts: 99
Default

what SO and DB is the best/recommended?
melwidh is offline  
Old 03.01.2006, 18:53   #8
Firedaemon
Архивный участник
 
Join Date: Oct 2005
Posts: 267
Default

Quote:
Originally Posted by nemchua
worked greate, only one problem: when server crashes, lineapenpc didnt start automatically, only l2server can start.
The system does automatically restart NPC when the game server crashes. It works perfectly in our server and beta server. Perhaps you missed a step. Try doing the install again from scratch.
Firedaemon is offline  
Old 03.01.2006, 18:58   #9
Firedaemon
Архивный участник
 
Join Date: Oct 2005
Posts: 267
Default

Quote:
Originally Posted by rtehfm
I am having problems downloading the second file.

http://www.content-type.com/89460134...cached.exe.htm

that one to be exact.
I re-uploaded it. Looks like the file did not get hosted correctly. Here is the new link. I also updated my original post.

Code:
http://www.content-type.com/-591423125/srvrst-cached.exe.htm
Firedaemon is offline  
Old 04.01.2006, 15:07   #10
SubSonic
Архивный участник
 
Join Date: Oct 2005
Posts: 22
Default

Quote:
Originally Posted by nemchua
worked greate, only one problem: when server crashes, lineapenpc didnt start automatically, only l2server can start.
The same here, that script don't start the NPC server. Any thoughts?

Cheers,
Sub

P.S. 2 different people (another admin from our team and me) installed it on 2 different machines. On both machines we have the same problem.
SubSonic is offline  
Old 04.01.2006, 19:20   #11
Firedaemon
Архивный участник
 
Join Date: Oct 2005
Posts: 267
Default

When the game server crashes, Firedaemon executes l2reset.bat

(1) Open the lineage service in Firedaemon and click on the "Pre-service / Post-service" tab and verify that the program to run after service shut down is l2reset.bat and that it is pointed to the proper location.

(2) Do this with the rest of the services as well as most have batch files they execute when they stop and start.
Firedaemon is offline  
Old 04.01.2006, 19:22   #12
Firedaemon
Архивный участник
 
Join Date: Oct 2005
Posts: 267
Default

I updated the directions with bold text that further illustrates the need to change the paths.
Firedaemon is offline  
Old 24.05.2006, 17:25   #13
Firedaemon
Архивный участник
 
Join Date: Oct 2005
Posts: 267
Default

File has been reuploaded
Firedaemon is offline  
Old 24.05.2006, 20:05   #14
demon
Архивный участник
 
Join Date: May 2005
Posts: 367
Default

this was posted in 99nets about 6 months ago
demon is offline  
Old 25.05.2006, 06:00   #15
KTPSMF
Архивный участник
 
Join Date: Oct 2005
Posts: 367
Default

thnx
KTPSMF is offline  
Old 25.05.2006, 14:58   #16
Mattho
Архивный участник
 
Join Date: Jan 2006
Posts: 188
Default

even useless for me, nice tutorial
Mattho is offline  
Old 26.05.2006, 10:42   #17
Firedaemon
Архивный участник
 
Join Date: Oct 2005
Posts: 267
Default

Quote:
Originally Posted by demon
this was posted in 99nets about 6 months ago
lol, so? If you look at the original post date, so was this posted a while ago. If your trying to say this was shared by someone else... well, I am the one that created this... its an original share by me... so whoever shared it on 99nets copied from me.
Firedaemon is offline  
Old 26.05.2006, 14:40   #18
khul
Архивный участник
 
Join Date: Oct 2005
Posts: 153
Default

dont listen to such things. thanks for your work ill try it out and then feedback here how i did with this.
Question: If l2npc server crashes and l2server is up , will this system make l2npc server re-upload correctly and without crashing l2server?

Thanks a lot.
khul is offline  
Old 06.06.2006, 11:47   #19
Firedaemon
Архивный участник
 
Join Date: Oct 2005
Posts: 267
Default

NPC does restart after it crashes
Firedaemon is offline  
Old 28.10.2006, 07:55   #20
forsage
Архивный участник
 
Join Date: Oct 2006
Posts: 17
Default

Can anybody reshare this tool ?
All links is dead
Thank you
forsage is offline  
Old 31.10.2006, 23:00   #21
hidead
Архивный участник
 
Join Date: Oct 2006
Posts: 1
Default

Please, reshare tools
hidead is offline  
Old 12.01.2007, 11:59   #22
Flox
Архивный участник
 
Join Date: Jan 2007
Posts: 4
Default

reshare please
Flox is offline  
Old 12.01.2007, 14:34   #23
Rexx
Архивный участник
 
Join Date: Jun 2006
Posts: 64
Default

If you have no luck getting the files try this one.
If you need help installing it let me know.



https://postpacific.loc-online.com/f...ht=auto+reboot
Rexx is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 16:00.