Did you know? [random xchat facts]
If you want to auto-remove files from the DCC windows when they are finished or aborted, you can /set dcc_remove 1. Great for file servers.
xchat.org
XChat IRC Client
 
 FAQFAQ   SearchSearch   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

logrotate

 
Post new topic   Reply to topic    xchat.org Forum Index -> XChat
View previous topic :: View next topic  
Author Message
ongeboren



Joined: 10 Jun 2004
Posts: 21
Location: Earth

PostPosted: Tue Aug 29, 2006 4:44 am    Post subject: logrotate Reply with quote

I searched the forum and didn't find a topic about how to use logrotate with xchat to rotate the log files. As there was a discussion about it in the channel on freenode, this is the resumee.

Here is what I'm using. You may put the following code into
/etc/logrotate.d/xchat (i'm a debian user). It will perform a weekly rotation, provided the log size is more than 100K big, old rotated files will get compressed and finally xchat is pushed (several times) to reload it's log files.

Please, note also the answer of Khisanth to the following thread: http://forum.xchat.org/viewtopic.php?t=2170&highlight=logrotate , as it gives another way (probably more convenient) to split your log files.

Here is the logrotate config block:
[code8943f7]
/home/*/.xchat2/xchatlogs/*.log {
weekly
missingok
size=100k
rotate 52
compress
delaycompress
nocreate
postrotate
pkill -SIGUSR1 xchat
endscript
}
[/code8943f7]



p.s. i don't know why the forum isn't letting me use the code blocks and how those numbers come there..
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    xchat.org Forum Index -> XChat All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group