[Uber][Holo][Debbo]&[Any other] [*New] Restart Server at Crash ~ Server Restarter

Status
Not open for further replies.

rajito

New Member
Aug 31, 2010
10
1
Updated to V2.0 , please read below!

Because Many people liked my Server Restarter, i updated it!
Whats new?
Not so much, just a added a little crashlog, so it saves the crashes in a .log file.
BUT i also made a simple command for Holograph users, so they can see the crashes remotely in-game.
The command:
capturezub.png


capture2cu.png


capture3y.png


capture4a.png

(What is a release without Screenies?):closedeyes:

Note: Only for Holograph.
To add command:
1.) Go to your server folder > source > virtual > users > VirtualUser.cs
2.) Open VirtualUser.cs
3.) Go to the top of VirtualUser.cs and search for
Code:
using System.Data;
4.) Add below:
Code:
using using System.IO;
5.) Then insert this command ( at the place where other your other commands are)
PHP:
 #region crashlog

                    case "crashlog": //fully coded by Rajito - www.rajitonetworks.tk
                        if (rankManager.containsRight(_Rank, "fuse_administrator_access", userID) == false)
                                return false;
                        {
                            System.IO.StreamReader readcrashlog = new StreamReader("crashes.log");
                            sendData("BK" + readcrashlog.ReadToEnd());
                        }
                        break;
                    #endregion
Debug your server, and you're Finished!

:restart command for Holograph Emulator
Added Command for Remote Restarting =]
Note: Only for Holograph.

To add command:
1.) Go to your server folder > source > virtual > users > VirtualUser.cs
2.) Open VirtualUser.cs
3.) Go to the top of VirtualUser.cs and search for
Code:
using System.Data;
4.) Add below:
Code:
using System.Diagnostics;
5.) Then insert this command ( at the place where other your other commands are)
PHP:
#region Rajito's restarting Command
                    case "restart": //Coded by Rajito -  www.rajitonetworks.tk
                        {
                            if (rankManager.containsRight(_Rank, "fuse_administrator_access", userID) == false)
                                return false;
                            userManager.sendData("BK" + stringManager.getString("scommand_hotelalert") + "\r" + "Server is restarting in 2 Minutes,\r Please finish your last stuff");
                        }
                        {
                            Process.GetCurrentProcess().WaitForExit(60000);
                            userManager.sendData("BK" + stringManager.getString("scommand_hotelalert") + "\r" + "1 Minute left till Restart...");

                        }
                        {
                            Process.GetCurrentProcess().WaitForExit(30000);
                            userManager.sendData("BK" + stringManager.getString("scommand_hotelalert") + "\r" + "30 seconds left till restart...");

                        }
                        
                        {
                            Process.GetCurrentProcess().WaitForExit(30000);
                            userManager.sendData("BK" + stringManager.getString("scommand_hotelalert") + "\r" + " Restarting server...");
                            Process.GetCurrentProcess().Kill();
                        }
                        break;
#endregion
6.) Debug Your emulator.
Finished!
To remote restart, you can now use the in-game command :restart , it will send a hotel alert first, to say that the server is going to restart, and then it will restart. (You need to run Rajito's Server Restarter

Download:


Virus Scan:

Don't know if link is working, Virus Total is doing weird.
I'll add the virus scan tomorrow.
(or you can scan it for me)


More information + Rajito's Server Restarter V1.0 (without crashlog)
Heey DevBest!
I'm proudly releasing:)tongue:) my server Restarter!
I know that it has been released before, BUT in this there is something new.
It is not only for Holograph Emulator, or Uber, but for all files.

Added Command for remote restarting, read below:
I added a config.ini file, and there you can change the file name.
rajitoserverrestarter.png


Note: This works for every program and server!, not only holograph emulator.
How to setup:
1.) Copy Rajito's Server Restarter.exe to the folder where your server is included.
2.) Open config.ini , and insert the filename name of your server
(WITHOUT .exe)
3.) Open Rajito's Server Restarter, ( NOT YOUR SERVER)

Added Command for Remote Restarting =]
Note: Only for Holograph.

To add command:
1.) Go to your server folder > source > virtual > users > VirtualUser.cs
2.) Open VirtualUser.cs
3.) Go to the top of VirtualUser.cs and search for
Code:
using System.Data;
4.) Add below:
Code:
using System.Diagnostics;
5.) Then insert this command ( at the place where other your other commands are)
PHP:
#region Rajito's restarting Command
                    case "restart": //Coded by Rajito -  www.rajitonetworks.tk
                        {
                            if (rankManager.containsRight(_Rank, "fuse_administrator_access", userID) == false)
                                return false;
                            userManager.sendData("BK" + stringManager.getString("scommand_hotelalert") + "\r" + "Server is restarting in 2 Minutes,\r Please finish your last stuff");
                        }
                        {
                            Process.GetCurrentProcess().WaitForExit(60000);
                            userManager.sendData("BK" + stringManager.getString("scommand_hotelalert") + "\r" + "1 Minute left till Restart...");

                        }
                        {
                            Process.GetCurrentProcess().WaitForExit(30000);
                            userManager.sendData("BK" + stringManager.getString("scommand_hotelalert") + "\r" + "30 seconds left till restart...");

                        }
                        
                        {
                            Process.GetCurrentProcess().WaitForExit(30000);
                            userManager.sendData("BK" + stringManager.getString("scommand_hotelalert") + "\r" + " Restarting server...");
                            Process.GetCurrentProcess().Kill();
                        }
                        break;
#endregion
6.) Debug Your emulator.
Finished!
To remote restart, you can now use the in-game command :restart , it will send a hotel alert first, to say that the server is going to restart, and then it will restart. (You need to run Rajito's Server Restarter

Antivirus results
AhnLab-V3 - 2011.03.20.00 - 2011.03.19 - -
AntiVir - 7.11.5.2 - 2011.03.20 - -
Antiy-AVL - 2.0.3.7 - 2011.03.20 - -
Avast - 4.8.1351.0 - 2011.03.20 - -
Avast5 - 5.0.677.0 - 2011.03.20 - -
AVG - 10.0.0.1190 - 2011.03.20 - -
BitDefender - 7.2 - 2011.03.20 - -
CAT-QuickHeal - 11.00 - 2011.03.20 - -
ClamAV - 0.96.4.0 - 2011.03.20 - -
Commtouch - 5.2.11.5 - 2011.03.20 - -
Comodo - 8051 - 2011.03.20 - -
DrWeb - 5.0.2.03300 - 2011.03.20 - -
Emsisoft - 5.1.0.2 - 2011.03.20 - -
eSafe - 7.0.17.0 - 2011.03.17 - -
eTrust-Vet - 36.1.8223 - 2011.03.18 - -
F-Prot - 4.6.2.117 - 2011.03.20 - -
F-Secure - 9.0.16440.0 - 2011.03.20 - -
Fortinet - 4.2.254.0 - 2011.03.20 - -
GData - 21 - 2011.03.20 - -
Ikarus - T3.1.1.97.0 - 2011.03.20 - -
Jiangmin - 13.0.900 - 2011.03.20 - -
K7AntiVirus - 9.94.4155 - 2011.03.19 - -
Kaspersky - 7.0.0.125 - 2011.03.20 - -
McAfee - 5.400.0.1158 - 2011.03.20 - -
McAfee-GW-Edition - 2010.1C - 2011.03.20 - -
Microsoft - 1.6603 - 2011.03.20 - -
NOD32 - 5969 - 2011.03.20 - -
Norman - 6.07.03 - 2011.03.20 - -
nProtect - 2011-02-10.01 - 2011.02.15 - -
Panda - 10.0.3.5 - 2011.03.20 - -
PCTools - 7.0.3.5 - 2011.03.20 - -
Prevx - 3.0 - 2011.03.20 - -
Rising - 23.49.04.05 - 2011.03.18 - -
Sophos - 4.63.0 - 2011.03.20 - -
SUPERAntiSpyware - 4.40.0.1006 - 2011.03.20 - -
Symantec - 20101.3.0.103 - 2011.03.20 - -
TheHacker - 6.7.0.1.153 - 2011.03.20 - -
TrendMicro - 9.200.0.1012 - 2011.03.20 - -
TrendMicro-HouseCall - 9.200.0.1012 - 2011.03.20 - -
VBA32 - 3.12.14.3 - 2011.03.18 - -
VIPRE - 8765 - 2011.03.20 - -
ViRobot - 2011.3.19.4366 - 2011.03.20 - -
VirusBuster - 13.6.259.2 - 2011.03.20 - -
File info:
MD5: e7d393394cc8cd24ba3de148821c3975
SHA1: 68d5964a4c7852ca32a291fbe588fb06276af690
SHA256: 26844b1fb3f6a747241ab6d3b0187e66f2de00434765c77c50fafd1ad0299f98
File size: 8192 bytes
Scan date: 2011-03-20 21:19:27 (UTC)
Direct Link:

Download:
 

Cablink

http://www.vroleplay.net - join now!
Feb 4, 2011
382
27
Omg, I use this tool for my hotel. Incase my emu crashes like it normally does. This tool is VERY useful!
 
Status
Not open for further replies.

Users who are viewing this thread

Top