Author
Topic: River's server (Read 17088 times)

Today I nothised that servers.simutrans.org is down and that the servers are no showing in game. But my server is still running and accessible via 80.101.25.164:13356 for the people that whan to conntinue playing on it or whan to join.

You would save the shell script in a file named "restart.sh" in your homefolder (or somewhere else if you want), then execute the line:

crontab -e

... to add the script to a timetable that runs automatically every minute or so. "crontab -e" opens an edit window in vim/emacs, where you'd add the following line:

* * * * * ~/restart.shNow, every minute the server will check if simutrans is running. If it is not, you can insert lines of code to either reboot the machine, restart a simutrans server instance, email yourself with an error message, etc.

Cron can be installed with `sudo apt-get install cron` on ubuntu-like servers.

@IBM i will set up a script if i get one working, i can't use yours as i'm hosting it on windows.

@Yona, i have seen the topic come by yes, if there is intrest in a map with the script i might be able to host a server for it. I like being able to build cross each other. it might cause some chaos but it makes working together intrestring as you can each do the part that intrest you.

I would like to know what causes the server to crash. I had it before in a different map on a server where it also started to crash when entering the late game.

The log files do not appear to show anything glaringly obvious going wrong, at least to me. I assume these crashes happen at different times (restarting allows the game to progress past the crash)?

Are they both for the same assertion failure crash you reported on the 24/08/2016? If so then I am guessing one will have to find the cause by looking at how the assertion could fail, something that will warrant as a bug report.