Logrotate ( http://www.debian-administration.org/articles/117)
My roundcube file looks like such:
/opt/www/roundcube/logs/errors { weekly rotate 4 compress missingok create 0640 www-data www-data }
/path/to/roundcube/logs/errors {
weekly
rotate 4
compress
missingok
create 0640 www-data www-data
}
There are other options in logrotate so you can delete the old file, etc....
Regards,
Daniel
On Tue, 9 Feb 2010 15:38:39 -0800 (PST), PJ wrote: Hi All, Wondering if
anyone can point me at some location which would allow me to set the
maximum size for log files. I have an errors log which due to a timezone
config error has hit 47GB in three weeks. I've now resolved the error but
would like to ensure the log file does not grow to this size ever again.
Cheers, PJ --
Email slow, clunky, unreliable? Switch to Yahoo!Xtra Mail
[1], New Zealand's new email address.
[1] http://au.rd.yahoo.com/nz/mail/tagline/2009/mailsignup/*http://yahoo.co.nz/m...
List info: http://lists.roundcube.net/users/
Thanks for that.
I'm running a Mac OSX 10.6.2 server so logrotate is not something that's installed by default.
I did find rotatelogs which is used by apache but doesn't seem to work as a standalone script.
In the end I've written my own LaunchDaemon to cycle the logs, gzip them and then delete any older than 7 days which will suffice for now.
Thanks Peter --
From: Daniel Caleb nix@tek12.com To: PJ pj_1004@yahoo.com Cc: users@lists.roundcube.net Sent: Wed, 10 February, 2010 2:09:09 PM Subject: Re: [RCU] Errors Log File
Logrotate ( http://www.debian-administration.org/articles/117) My roundcube file looks like such:
/opt/www/roundcube/logs/errors { weekly rotate 4 compress missingok create 0640 www-data www-data }
/path/to/roundcube/logs/errors {
weekly
rotate 4
compress
missingok
create 0640 www-data www-data
}
There are other options in logrotate so you can delete the old file, etc.... Regards, Daniel
On Tue, 9 Feb 2010 15:38:39 -0800 (PST), PJ wrote: Hi All,
Wondering if anyone can point me at some location which would allow me to set the maximum size for log files. I have an errors log which due to a timezone config error has hit 47GB in three weeks. I've now resolved the error but would like to ensure the log file does not grow to this size ever again. Cheers, PJ -- Email slow, clunky, unreliable? Switch to Yahoo!Xtra Mail, New Zealand's new email address.
List info: http://lists.roundcube.net/users/