Page 1 of 1
linux restart
Posted: Wed Mar 24, 2010 11:33 pm
by darkzonenet
hi,
i am testing files in ubuntu os but when the server is restarting, it doesn't start from the begining. it stops after the saves. do you know how can i fix this?
Re: linux restart
Posted: Thu Mar 25, 2010 10:21 am
by rocoder
you work in terminal?
btw some server logs will be useful
you can check if the process ended with the command "top"
Re: linux restart
Posted: Thu Mar 25, 2010 12:27 pm
by darkzonenet
well as i saw the auto restart is working but the log console in ubunt ustops in the save info and as i understood it run again in back ground so i can not see it.
do you know how can i edit the startgameserver.sh to see the log console after the restart?
Re: linux restart
Posted: Thu Mar 25, 2010 12:34 pm
by kotk
ummm, tail -F stdout.log
Re: linux restart
Posted: Fri Mar 26, 2010 9:49 am
by macdonald12
When the program halts itself and the script executes it again, you need to recall the tail command.
Re: linux restart
Posted: Fri Mar 26, 2010 2:46 pm
by darkzonenet
i have this in startgameserver.sh but as i wrote when the server is restarting no new log pops up and the old doesn't update.
is there any way to see the new log?
also is there any way to make startgameserver to run in a console and not in log ?
thanks
Re: linux restart
Posted: Fri Mar 26, 2010 2:51 pm
by knoppix
Let's take as example, you run the command tail -f stdout.log
Send a restart with the GM for example, you will see every action the the server make to shutdown the server before start it again. once the server save all data, it save the stdout.log to a new file called stdou-DATE.log and then when it start it will create a empy and new stdout.log so you need to cancel the tail you are running and execute the tail -f stdout.log command again to see how the server came up xD!
And that's it
Regards!
Re: linux restart
Posted: Fri Mar 26, 2010 2:58 pm
by darkzonenet
hi,
so i am closing the old log and then i press to console tail -f stdout.log ?
Re: linux restart
Posted: Fri Mar 26, 2010 5:53 pm
by macdonald12
Yes, that's basically what 3 people told you now

Re: linux restart
Posted: Fri Mar 26, 2010 11:39 pm
by kotk
If you use the "-F" option it will follow the new file.
Re: linux restart
Posted: Sat Mar 27, 2010 12:50 pm
by darkzonenet
i will try it. Btw is there any way to make it auto with a script?