[IRCServices] Turning over logs with crontab?
Jonathan Morton
chromi at cyberspace.org
Thu Oct 5 11:54:56 PDT 2000
>You have my vote for that. :) I'm looking at log files that run into the
>100's of megs, and it would be nice to shuffle them off to another place,
>or automate it in some fashion.
Here's my idea. At midnight, start a new logfile (eg.
services.log.YYYYMMDD), close the old one, and update a symlink
(services.log) to point to the latest logfile. After a few days' running,
the log directory would look like this:
services.log -> ./services.log.20001004
services.log.20001001
services.log.20001002
services.log.20001003
services.log.20001004
An optional setting to compress/move logfiles a week old (or so) would also
be helpful, I suspect.
Just my 2 pence...
--------------------------------------------------------------
from: Jonathan "Chromatix" Morton
mail: chromi at cyberspace.org (not for attachments)
uni-mail: j.d.morton at lancaster.ac.uk
The key to knowledge is not to rely on people to teach you it.
Get VNC Server for Macintosh from http://chromatix.autistics.org/vnc/
-----BEGIN GEEK CODE BLOCK-----
Version 3.12
GCS$/E/S dpu(!) s:- a19 C+++ UL++ P L+++ E W+ N- o? K? w--- O-- M++$ V? PS
PE- Y+ PGP++ t- 5- X- R !tv b++ DI+++ D G e+ h+ r- y+
-----END GEEK CODE BLOCK-----
---------------------------------------------------------------
To unsubscribe, send email to majordomo at ender.shadowfire.org
with "unsubscribe ircservices" in the body, without the quotes.