Jump to content

Server auto restart


x_cure

Recommended Posts

I want to setup a auto restart for the server.

 

As was suggested, I edited epochconfig.hpp and set serverRestart = true.

 

The server does not restart.

 

How can it be done? Also, I saw that there are servers with warnings before the restart, is there sort of script for this?

 

Thanks!

Link to comment
Share on other sites

Or you can make it via Task Scheduler and call a batch like this:

 

taskkill /f /fi "status eq not responding" /im arma3server.exe
taskkill /f /im arma3server.exe
start "arma3" "D:\Servers\Epoch\arma3server.exe" -mod=@Epoch;@epochhive -config=D:\Servers\Epoch\sc\config.cfg -cfg=D:\Servers\Epoch\sc\basic.cfg -port=2302 -autoInit -profiles=D:\Servers\Epoch\sc -name=sc
exit
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...