After getting messages from a few people about purchasing FireDaemon Pro for restarting their servers and other complicated stuff. I have created this script to do the exact same thing.. Minus the windows service.
@echo off
cls
echo Watching arma2oaserver For Crashes/Restarts...
echo If you want to close arma2oaserver and this script, close the arma2oaserver window and type Y depending on your language followed by Enter.
title Raklatif's Arma2OA Monitor
:arma2oaserver
echo (%time%) arma2oaserver started. start /wait "arma2" /min "Expansion\beta\arma2oaserver.exe" -port=2302 "-config=instance_11_Chernarus\config.cfg" "-cfg=instance_11_Chernarus\basic.cfg" "-profiles=instance_11_Chernarus" -name=instance_11_Chernarus "-mod=@DayZ_Epoch;@DayZ_Epoch_Server;"
echo (%time%) WARNING: arma2oaserver closed or crashed, restarting.
goto arma2oaserver
Replace the line in bold with your Startup Bat Parameters, and make sure you include the /wait"after the start.
Place this save as a .bat and place in your Server's root folder.
(OPTIONAL) Add this to your autorun folder to have this run on startup.
I would additionally suggest to setup BEC with this aswell, and have the BEC do a shutdown command on your specified timings :)
Question
Guest
After getting messages from a few people about purchasing FireDaemon Pro for restarting their servers and other complicated stuff. I have created this script to do the exact same thing.. Minus the windows service.
Replace the line in bold with your Startup Bat Parameters, and make sure you include the /wait"after the start.
Place this save as a .bat and place in your Server's root folder.
(OPTIONAL) Add this to your autorun folder to have this run on startup.
I would additionally suggest to setup BEC with this aswell, and have the BEC do a shutdown command on your specified timings :)
Link to comment
Share on other sites
7 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now