linux restart

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
darkzonenet
Posts: 42
Joined: Mon Oct 26, 2009 9:22 pm

linux restart

Post 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?
User avatar
rocoder
Posts: 66
Joined: Thu Feb 04, 2010 8:52 am

Re: linux restart

Post by rocoder »

you work in terminal?
btw some server logs will be useful
you can check if the process ended with the command "top"
Image
darkzonenet
Posts: 42
Joined: Mon Oct 26, 2009 9:22 pm

Re: linux restart

Post 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?
kotk
Posts: 99
Joined: Wed Jan 04, 2006 12:51 am

Re: linux restart

Post by kotk »

ummm, tail -F stdout.log
macdonald12
Posts: 89
Joined: Mon Sep 15, 2008 8:51 am

Re: linux restart

Post by macdonald12 »

When the program halts itself and the script executes it again, you need to recall the tail command.
darkzonenet
Posts: 42
Joined: Mon Oct 26, 2009 9:22 pm

Re: linux restart

Post 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
User avatar
knoppix
Posts: 138
Joined: Sat Dec 12, 2009 8:02 pm
Location: La Plata, Buenos Aires

Re: linux restart

Post 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!
"Only two things are infinite, the universe and human stupidity, and I\\\'m not sure about the former." - A.Einstein
darkzonenet
Posts: 42
Joined: Mon Oct 26, 2009 9:22 pm

Re: linux restart

Post by darkzonenet »

hi,

so i am closing the old log and then i press to console tail -f stdout.log ?
macdonald12
Posts: 89
Joined: Mon Sep 15, 2008 8:51 am

Re: linux restart

Post by macdonald12 »

Yes, that's basically what 3 people told you now :wink:
kotk
Posts: 99
Joined: Wed Jan 04, 2006 12:51 am

Re: linux restart

Post by kotk »

If you use the "-F" option it will follow the new file.
darkzonenet
Posts: 42
Joined: Mon Oct 26, 2009 9:22 pm

Re: linux restart

Post by darkzonenet »

i will try it. Btw is there any way to make it auto with a script?
Post Reply