ZamboniBambino Posted December 20, 2014 Report Share Posted December 20, 2014 Hi guys, Apologies for the sabbatical on ZFM, but I come bearing gifts. On our server, one thing I really found frustrating was the requirements of BattleEye Extended Controls, because quite frankly I felt it was a big heap of config files for something that was a pain in the ass to update, and that didn't always work smoothly. So, I created this; a simple solution for Windows servers for managing server restarts, server crashes, and messages. It requires knowledge of creating tasks. What is it? ZST consists of three PowerShell scripts which are used to perform server restarting, sending messages to servers (i.e news, rules) and restarting servers in case of error/crash. The three scripts are: ServerMonitor - If the arma2/arma3 server instance drops out, it will restart it. Also performs the following tasks: Backs up PBO if it's changed. Moves log files in BattlEye, InfiSTAR & RPT to prevent them from growing huge. Performs optimisation of game databases. Performs backup of game databases. Supports backup to off-site location / cloud storage folder (We use SpiderOak as it's got good encryption) Backs up to WinRAR archives with password. ServerMessenger - Simple application that will send messages to a server for informational purposes (i.e. rules, updates, news, etc). ServerKiller - Performs the "server will restart in X minutes" function, and restarts the server. What do I require to run it? mysqldump (Should be default with MySQL tools or MariaDB 10) mysqlcheck (Should be default with MySQL tools or MariaDB 10) WinRAR (For archiving of backups) BERcon (https://github.com/zambino/bercon/blob/master/bercon/bin/Release/bercon.exe?raw=true) Knowledge of creating tasks on windows server : Where do I download it? Download it HERE: https://github.com/zambino/servertools/archive/master.zip How do I use it? Download the latest archive from GitHub: https://github.com/zambino/servertools Copy the files to your server in a location for an individual server instance (i.e Server1 or something) Open all 3 of the files and edit the settings to match the locations of your Arma2/Arma3 server, provide Rcon passwords, and so on. Open the windows tasks console, and create a task for each of the scripts listed above: For the ServerMonitor (ZST_ServerMonitor.ps1), set the "run when" to "system startup" and then create another "run when" which says to run the script after a set time, and then set the time to the current time. This will allow the monitor to start up if your server restarts and start monitoring your arma2oaserver instance. For the ServerMessenger (ZST_ServerMessenger.ps1), set the "run when" as with the script above. In the "action" dialog, set options so that the script runs every X minutes, indefinitely. This will allow the script to periodically open and send messages to your server. For the ServerKiller (ZST_ServerKiller.ps1), set the "run when" as above, and set the "actions" dialog as follows. The script itself takes 10 minutes to run, so suppose you have a restart every 3 hours, set the script to run every 170 minutes (i.e. 2 hours, 50 mins) and it will run the restarter 10 minutes before restart occurs to give players a countdown. For each task, select "run a program" and point it to your location of Powershell.exe. This is located in C:/Windows/System32/WindowsPowershell/ in most instances. For each task, in the "run a program" part, under "parameters" type in "-File <path to script>" and replace the "<path to script>" to the full path of the script you're creating a task for. A more detailed install tutorial will be added in a short while. :) Defent and AG.Ndogg97 2 Link to comment Share on other sites More sharing options...
Defent Posted December 20, 2014 Report Share Posted December 20, 2014 Looks really interesting! May try it when I get time! Link to comment Share on other sites More sharing options...
ZamboniBambino Posted February 20, 2015 Author Report Share Posted February 20, 2015 Also updated for Arma 3 and REDIS. Link to comment Share on other sites More sharing options...
Basti890 Posted April 9, 2015 Report Share Posted April 9, 2015 sound intresting.. does it work on linux-root too or can you make it work there? Link to comment Share on other sites More sharing options...
Kimzer Posted April 9, 2015 Report Share Posted April 9, 2015 Are there any screenshots of this in action? :) Link to comment Share on other sites More sharing options...
ZamboniBambino Posted April 9, 2015 Author Report Share Posted April 9, 2015 Sadly not as it runs in the background if you use it as a service. I can create some but it'd just be pictures of the task scheduler :-) Link to comment Share on other sites More sharing options...