Jump to content

Remote Restart?


Recommended Posts

I recently got a server and am trying it out now, but it doesn't give you a way to restart your server through their web admin, so I need to remote console restart it, but there appears to be no way to do so? Or do I just have to contact the hosting and have them restart it for me?

Can something be done with Execute Command in the Admin Menu?

Link to comment

I would also appreciate that!

I made a quick Auto-Restart for my Server using Batch files. I can type "Shutdown" in the dedicated console but never could directly from in game. A way to remote close/restart it would be a good addition!

Link to comment

i suppose we could write a restartServer() function that stops the server as if it was shutting down but instead of terminating the process it just starts the server again.. wouldnt be that hard.. although i cant do it atm as im in the process of moving house so dont really have access to the mta code base right now :(

once ive sorted out my internet at the new flat ill see what i can do.

Link to comment

Making an AutoRestart Script is very easy! Here it is:

Just open NotePad and put this in it

@echo off 
title MTA Server (AutoRestart) 
.\"MTA Server" 
.\Auto_Restart.bat 

Then save the file named "Auto_Restart.bat"

And execute that file instead of the Server. It will run the server as usually but if it is ever Shutdown or Crashed, it will Auto-Restart.

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...