• 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!

how to use gdb on ./otserv?

gdb ./otserv
where i can see log of errors etc?
dont work
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/home/xxx/otserv...(no debugging symbols found)...done.
 
cant automatic?
i dont know when server crash maybe on night and i sleep
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
 
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
this 100% work?

i use this to auto restart
restart-ots
Code:
#!/bin/bash
ulimit -c unlimited
while true;
do
echo "Restart : `date +%d-%m-%Y--%H:%M`" >> ./restart.log
./otserv
sleep 10
done
i try tomorrow thank you
 
yeah 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
 
yeah 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
hmm i cant login to server i have connection to the game world.please wait

Screen_Shot_12_04_15_at_09_10_PM.png
 
Last edited:
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?
 
Last edited:
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?
distribution https://otland.net/threads/7-60-tibiafun-com-pl-engine-old-tibiafun-org-full.190555/
yes i use
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
--log-file is from restart-ots
 
Back
Top