I just wanted to share my setup on a windows server. I use a reboot batch script and a small tool (FMx, Factorio Map Fixer) to rename the latest save file to the save file you are using so the map gets no rollbacks on a crash.
The batch script:
Code: Select all
:reboot
fmx "C:\Factorio\saves\map.zip"
start /wait Factorio.exe --start-server map.zip
timeout 10
goto reboot
I have included the files used for my server and the source code for FMx.
Maybe they can help you out.
Cheers!