In our support boards we aim to provide support for the B3 core in its current state. Older releases of B3 are NOT supported. Check our front page for the latest version. You may post feature requests in our General Discussion board. Modifications and Hacks of the core B3 code are NOT supported.
Before you ask for support: [ Read the Support Instructions ] - More info: [ Full Support Disclaimer ]

You are here: Big Brother Bot ForumSupport ForumsInstallation Support (Moderator: MordyT)shutdown from console
Pages: [1]   Go Down
  Print  
Author Topic: shutdown from console  (Read 1300 times) Bookmark and Share
Jr. Member
**
OS: Linux
Type: Gameserver Rental Co.
Gameservers: CoD, CoD2, CoD4, CoD5
Posts: 16
Offline Offline
« on: March 06, 2010, 06:02:54 PM »

My understanding is that B3 monitors the console logs.  I have a script that runs a midnight each day.  The script copies console_mp_server.log and games_mp.log to a new name in a new location, then echos a blank beginning line to empty the file.

I did this instead of moving the file as it didn't break the logging in COD.  We've noticed though it is breaking B3.  I want to inject a restart.  I tried both of the following, but they just don't seem to be responding.

"echo '  18:52 say;myid;4;myname;^U!restart' >> .callofduty/uo/games_mp.log;"
"echo '^U^9myname^7: ^U!restart' >> .callofduty/uo/console_mp_server.log"

Do you have a suggestion on how to do this?  Or is there a way to reset the logs without killing b3?

Thank you!
Logged

Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3477
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #1 on: March 06, 2010, 06:25:33 PM »

On my servers (Urbanterror, not Cod though) I restart the B3 bot after the gamelog rotation. This does not affect the player crowd as I do the log rotation at night when nobody is there.

Here is my logrotate script :

Code:
/home/myuser/gamecreate/urbanterror/q3ut4/port*/q3ut4/*.log
/home/myuser/iourt-jumpers/q3ut4/q3ut4/*.log
{
weekly
rotate 28
compress
notifempty
        copytruncate
sharedscripts
postrotate
/etc/init.d/b3-gamers restart > /dev/null
/etc/init.d/b3-jumpers restart > /dev/null
/etc/init.d/b3-dumbers restart > /dev/null
endscript
}
« Last Edit: March 06, 2010, 06:27:05 PM by Courgette » Logged

Jr. Member
**
OS: Linux
Type: Gameserver Rental Co.
Gameservers: CoD, CoD2, CoD4, CoD5
Posts: 16
Offline Offline
« Reply #2 on: March 06, 2010, 06:30:45 PM »

do you mean the bot process, you restart it?  I was trying to leave the bot running and just tell it to "reload" internally.  How servers have a tendency to be full at midnight so I was trying to avoid restarting the entire thing.


Xavier
Logged
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3477
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #3 on: March 06, 2010, 06:35:32 PM »

"night when nobody is there" is around 6am for my server  Wink
and yes, I just kill the process and restart it. It does not hurt
Logged

Jr. Member
**
OS: Linux
Type: Gameserver Rental Co.
Gameservers: CoD, CoD2, CoD4, CoD5
Posts: 16
Offline Offline
« Reply #4 on: March 06, 2010, 07:12:03 PM »

I tried as you suggested and got the message you must be authenticated first... There are nights our server is never empty.  Suggestions?
Logged
Jr. Member
**
OS: Linux
Type: Gameserver Rental Co.
Gameservers: CoD, CoD2, CoD4, CoD5
Posts: 16
Offline Offline
« Reply #5 on: March 06, 2010, 07:15:34 PM »

Ok, it does seem to work, the first time after the restart it says you must authenticate first, but then seems to work fine the second time.
Logged
Tags:
Pages: [1]   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal