![]() |
|
|
#1 |
|
Архивный участник
Join Date: Apr 2006
Posts: 1
|
I mostly just browse the forums to see whats going on and play with a few mods here and there, and test them on my private servers. But the main reason I wrote this cause I was tired of GM's or Dev not being there to reboot there servers when they crash. This rebooter takes a little over 8 minutes to reboot. The time can be shorten if you like, cause I left the source code in the zip also.
Right now the service is setup to start CacheD.exe right away and L2AuthD.exe 1 min after cacheD starts. L2server will start 2-3 minutes affter L2AuthD, and NPC is almost 6-8 minutes from the start of the whole process. If any of the programs crash, the service is setup to shut all .exe's down, and restart them all in order. The total time for the reboot should be around 8 minutes. Process Monitor 1) This program needs Microsoft .net 2.0 to run. 2) Download and unzip to any folder, because you can configure the server folders. 3) After unzip go to L:\ProcessMonitor\bin\Debug\ProcessMonitor.exe.con fig and edit it with the file path of CacheD, Auth, L2server, and NPC .exe. 4) Next you need to install the program as a service. This can be found here L:\ProcessMonitor\bin\Debug\install.bat. This service is able to be unistalled by using L:\ProcessMonitor\bin\Debug\uninstall.bat. 5) Once the service is installed you need to go to your manage under my computer. 6) Go to Services and Applications, and click on the services tab. 7) Find the service ProcessMonitor, and right click on in and go to properties. 8) Once in properties go to the Logon tab at the top. 9) Check the box allow service to interact with desktop, and hit okay. 10) Once everything is configured you can start the service. Note: The only way to stop this from auto rebooting is to stop the service. For example this is what my config looks like <?xml version="1.0" encoding="utf-8"?> <configuration> <appSettings> <add key="Process1" value="L:\ServerL2\CacheD\CacheD.exe" /> <add key="Delay1" value="0"/> <add key="Process2" value="L:\ServerL2\NewAuth\L2AuthD.exe" /> <add key="Delay2" value="1"/> <add key="Process3" value="L:\ServerL2\L2ServerL2Server.exe"/> <add key="Delay3" value="2"/> <add key="Process4" value="L:\ServerL2\L2NPC\L2NPC.exe"/> <add key="Delay4" value="3"/> </appSettings> </configuration> Let me know if any one has any troubles. Process Monitor |
|
|
|
|