[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] logrotate config question
- Subject: Re: [cobalt-users] logrotate config question
- From: Jay Summers <jay@xxxxxxxxxxxxxxxxxxxx>
- Date: Thu Aug 9 15:28:14 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
>> I searched the archives for 'logrotate size' and came up with 145 hits.
>> Please excuse my question if it has been covered, but I did not find the
>> answers I was looking for, nor have I seen them covered in the couple
>> months I've been on the list now.
>>
>> It is my understanding that the size configuration in
>> /etc/logrotate.d/siteXX is determined by taking 10% of the sites size
>> limit. Eventually I am going to build some automation scripts for setting
>> up users, that employ the command line site and user tools and we may want
>> a small site with high traffic to have a larger limit for the logfile, but
>> not have 10 times that figure in the way of storage space. Is it possible
>> to change the percentage? On a per site basis? If I write a script to
>> change the size in /etc/logrotate.d/siteXX, will it get overwritten every
>> time the GUI is used to modify that site?
> Edit :
> /etc/logrotate.d/site<number>
> and
> /etc/logrotate.onboot/site<number>
That's one way to do it, but these will get overwritten by the GUI if you
make changes to the site Quota. The only way around it is to edit the cobalt
scripts to your liking, which is what we have done.
On our Raq2 this is the file that the GUI uses to configure the logrotate
scripts in /etc/logrotate.d and /etc/logrotate.onboot:
/usr/lib/perl5/site_perl/auto/Cobalt/Vsite/vsite_set_logrotate.al
I suppose it may be a different script on the Raq3's and 4's, but I don't
have one to look around on. As usual, YMMV, use at your own risk, this will
void your lame warranty, yada, yada, yada.
HTH,
j
--
http://www.bizmanuals.com