Restart without battleye

ihatetn931

Well-Known Member
I made a simple batch, it's prolly not the best way to do it but it works, Just need to run a task whenever you wanna restart the server. No battle eye required

This works with pwnozors server files, only tested on windows 7 x64 using windows task schedueler.

This file can be named anything and be placed anywhere.

Code:
@echo off
echo killing dayz server
taskkill /F /IM arma2oaserver.exe /T
echo.
echo.
echo.
PING 1.1.1.1 -n 1 -w 300 >NUL
echo killing mysql
taskkill /F /IM mysqld.exe /T
taskkill /FI "WINDOWTITLE eq MYSQL*"
echo.
echo.
echo.
PING 1.1.1.1 -n 1 -w 300 >NUL 
echo Starting Dayz Server
cd C:\dayz PS\
call "dayz.bat"

You need to change a couple of lines to get this to work.

You first need to open your MySQL folder that came with pwnzors server files and add this to your MySQL.bat
Code:
TITLE MYSQL
should look something like this
Code:
TITLE MYSQL
@echo off
 
.\bin\mysqld --console
 
pause
Once you have done that, save and close.

Next You need to change this line
Code:
cd C:\dayz PS\

To where your server files are.

Next you change this line
Code:
call "dayz.bat"
To your server batch file you use to load up the server which is mostly
Code:
call "@START_SERVER.bat"


I know it's not the best way to do it, but I just run a private lan server for me and my friends so instead of having to manually restart the server every hour or having to run battleeye I did this.

This script assumes you use the default way to start up pwnzors server.

If you need any help feel free to ask.
 
This just kills the server and starts it back up but you use a scheduler to determine the time to start it up again each day?
 
I just set the scheduler to do It every so many hours. So once it runs through the schedule once It repeats every 4 hours. So it runs once at the desired time, waits 4 hours then does it again
 
Back
Top