where i can see log of errors etc?gdb ./otserv
cant automatic?maybe
gdb
file otserv
run
when the server crashes you type bt to get the log in terminal
create a file called "autorestarter" or anything you desirecant automatic?
i dont know when server crash maybe on night and i sleep
#!/bin/bash
ulimit -c unlimited
while true; do ./otserv --log-file "output.txt" "error.txt"; done
this 100% work?create a file called "autorestarter" or anything you desire
paste in it
Code:#!/bin/bash ulimit -c unlimited while true; do ./otserv --log-file "output.txt" "error.txt"; done
start your server with: ./autorestarter
in a new screen
while server crashes your server will restart, but will also get a core dump which you can alter in gdb
#!/bin/bash
ulimit -c unlimited
while true;
do
echo "Restart : `date +%d-%m-%Y--%H:%M`" >> ./restart.log
./otserv
sleep 10
done
#!/bin/bash
ulimit -c unlimited
while true;
do
echo "Restart : `date +%d-%m-%Y--%H:%M`" >> ./restart.log
./otserv --log-file "output.txt" "error.txt"
sleep 10
done
hmm i cant login to server i have connection to the game world.please waityeah it will work for sure
or if you want to apply it on yours instead with the "sleep" included;
Code:#!/bin/bash ulimit -c unlimited while true; do echo "Restart : `date +%d-%m-%Y--%H:%M`" >> ./restart.log ./otserv --log-file "output.txt" "error.txt" sleep 10 done
distribution https://otland.net/threads/7-60-tibiafun-com-pl-engine-old-tibiafun-org-full.190555/uh i have no idea, both worked properly for me
did you test the "restarter" i sent you?
did you close your own server/autorestarter before doing what i mentioned?
what distro are you using?
i have no idea how your global ip adress means; --log-file?
#!/bin/bash
ulimit -c unlimited
while true;
do
echo "Restart : `date +%d-%m-%Y--%H:%M`" >> ./restart.log
./otserv --log-file "output.txt" "error.txt"
sleep 10
done