linux restart
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
-
- Posts: 42
- Joined: Mon Oct 26, 2009 9:22 pm
linux restart
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?
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?
- rocoder
- Posts: 66
- Joined: Thu Feb 04, 2010 8:52 am
Re: linux restart
you work in terminal?
btw some server logs will be useful
you can check if the process ended with the command "top"
btw some server logs will be useful
you can check if the process ended with the command "top"
-
- Posts: 42
- Joined: Mon Oct 26, 2009 9:22 pm
Re: linux restart
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?
do you know how can i edit the startgameserver.sh to see the log console after the restart?
-
- Posts: 89
- Joined: Mon Sep 15, 2008 8:51 am
Re: linux restart
When the program halts itself and the script executes it again, you need to recall the tail command.
-
- Posts: 42
- Joined: Mon Oct 26, 2009 9:22 pm
Re: linux restart
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
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
- knoppix
- Posts: 138
- Joined: Sat Dec 12, 2009 8:02 pm
- Location: La Plata, Buenos Aires
Re: linux restart
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!
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
-
- Posts: 42
- Joined: Mon Oct 26, 2009 9:22 pm
Re: linux restart
hi,
so i am closing the old log and then i press to console tail -f stdout.log ?
so i am closing the old log and then i press to console tail -f stdout.log ?
-
- Posts: 89
- Joined: Mon Sep 15, 2008 8:51 am
Re: linux restart
Yes, that's basically what 3 people told you now 

-
- Posts: 99
- Joined: Wed Jan 04, 2006 12:51 am
Re: linux restart
If you use the "-F" option it will follow the new file.
-
- Posts: 42
- Joined: Mon Oct 26, 2009 9:22 pm
Re: linux restart
i will try it. Btw is there any way to make it auto with a script?