• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

OpenTibia [Linux] Simple Restart OTServ

RaikND

facebook.xenoria.org
Joined
May 12, 2010
Messages
942
Reaction score
10
Location
Spain
Its a simple restart with a log, are two simple documents.

First Step (Fast, open your NotePad):

startserver.sh:
Lua:
#!/bin/bash

./otserver_loop.sh &
After this, save it and open a new, please :=)
otserver_loop.sh:
Lua:
#!/bin/bash

err=1
until [ $err == 0 ];
do
	[ -d log/ ] || mkdir log/
	[ -f log/stdout.log ] && mv log/stdout.log "log/`date +%Y-%m-%d_%H-%M-%S`_stdout.log"
	./theforgottenserver > log/stdout.log 2>&1
	err=$?
	sleep 10;
done

Ah... and yes 10 minutes the log update.


Sorry for my english, regards.
 
this restarter, got a own coded with a log :)

BUMP, for newbies on OS Linux, this restarter got a "log" when crash too :)
 
auto restart is the worst thing you may add to your server,
if someone find a crash bug they will keep crashing your server and the restarter will help them in dupe :)
and about the logs you may use screen
screen -L ./theforgottenserver
 
Simple restarter? This looks rather complicated though.

Easiest to just write:
while true; do ./theforgottenserver; done
?
 
Simple restarter? This looks rather complicated though.

Easiest to just write:
while true; do ./theforgottenserver; done
?

This is a great restarter, when crash make a log from all day of OT, when start & down
 
Back
Top