Jump to content
  • 0

Server Auto-Restart: The easy way


Randomness

Question

Ive seen a bunch of nice solutions on how to automate a server restart, and they all seem to be more effort than needed. 

 

Open your bec schedulere.xml and add a #shutdown command at the time you want it to restart.

Open your server starter bat, and make it look like this:

@echo off
color 0a
title DayZ Autorestart
:top
start "arma" /wait "Expansion\beta\arma2oaserver.exe" YOUR ARMA PARAMETERS HERE
goto top

Make sure this bat is in your main arma2 folder, and tadaa, autorestart. No need for fancy tools or fire daemon or whatever. Just batch and gooo!

 

The same should be done with the BEC autorestarter:

@echo off
color 0a
title BEC Auto Restart
:top
start "BEC" /wait "Bec.exe" -f "Config.cfg" 
TIMEOUT /T 10 /NOBREAK
goto top

Place this in your BEC folder and run it. The Timeout is to make sure BEC doesnt start before the server starts.

Enjoy

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Have fun with that when BEC crashes :D

 

I use the same method for BEC, so it never crashes.

Edit: If you run 5 servers on the same box then this probably isnt a good solution (as it would give 10 terminals), but if you run 1 or 2 servers, its no problem.

Edit2: Edited first post, to make nyan cat even happier

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
  • Discord

×
×
  • Create New...