just make a batch file that will restart your server
:loop
start C:\FXServer\run.cmd +exec server.cfg
timeout /t 7200 >null
taskkill /f /im FXServer.exe >nul
timeout /t 10 >null
goto loop
make that your start.bat file if ur using windows it will automatically restart the server every 2 hours