Jump to content

Remote Restart?


Recommended Posts

Posted

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?

Posted

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!

Posted

shutdown() will be added for dp3, however it will be upto the whoever runs the server to make it autorestart (there are scripts and applications which can do it for you)

Posted

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.

Posted

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.

  • Recently Browsing   0 members

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