[Dedicated server] restarting fivem server when having multiple [Help]

Hello everyone,

Recently we bought a dedicated server in order to have more stability and options for our fivem server(s). However, since we are used to having a web interface from, for example, Zaphosting, we now have to deal with the cmd window(s) in our Windows 2016 server.

My question is, is there a better way when it comes to restarting a fivem server then just closing down the cmd window? Reason for asking is, with having multiple fivem servers, I am scared that the wrong window gets closed. Offcourse me and my friends that have access need to be careful, but a mistake is easy made.

Sorry if this is a silly question, but looking forward for your experiences.

If it’s just a question of identifying the command window, you could do multiple things of varying difficulty. The easiest would be putting a title on the command window. I am not familiar with Zap in the slightest, but if you have access to the batch file that starts your server, you can add a title to it.

cd /d c:\fxsdata
TITLE Server 1
c:\fxserver\run.cmd +exec server.cfg

Something like that. Something more difficult would be use Node to spawn the processes and keep track of which is which, if you wanted to restart it remotely. Or you could use a C# program or something of that nature to do the same thing.