1

Topic: [TOOL] Server restart script

Just dropping this here, maybe someone finds it useful.

This is a script that executes a teeworlds server, and restarting it on crash. Additionally, if the server does not respond to a server info request, it will be killed as it's likely in an infinite loop.

Usage: restarter SRV_PORT COMMAND [PARAM]...

So for example:

./restarter 8303 ./teeworlds_srv -f config.cfg

View source

2

Re: [TOOL] Server restart script

Thanks!

heinrich5991 wrote:

This is a script that executes a teeworlds server, and restarting it on crash. Additionally, if the server does not respond to a server info request, it will be killed as it's likely in an infinite loop.

So it doesn't have any use for vanilla Teeworlds, does it?

Not Luck, Just Magic.

3 (edited by heinrich5991 2014-02-24 02:07:47)

Re: [TOOL] Server restart script

Dune wrote:

So it doesn't have any use for vanilla Teeworlds, does it?

If you consider vanilla to be bugfree (which it probably isn't), then yes.

EDIT: This would also kill the server if some admin got the very helpful idea of 1) executing the logfile (which results in an endless loop) or 2) shutting down the server (both via rcon).

4

Re: [TOOL] Server restart script

Thanks for sharing it smile
That's exactly what I need^^