Which program runs processes /etc/logrotate.d ?:SOLVED

Joel Hammer Joel
Mon May 17 11:33:42 PDT 2004


Well, found the answer:

The file /etc/logrotate.d/.conf contains the line: 
include /etc/logrotate.d

This was a bit inconspicous, coming as it did after a comment about
RPM's. This makes logrotate read all the configuration files in
/etc/logrotate.d.

<RANT> They have made a simple job as complicated as possible: cron
starts and runs in the background, it reads /etc/crontab (hard coded
in cron) which calls /usr/sbin/cronloop with Daily Weekly etc options,
those options being directories with scripts in them, and each script
in the directory is run, but each script is really just a symbolic link
to a script in ../lib, and each script in lib runs another program which
has its own configuration file somewhere else, which may reference other
configuration files, etc & etc. In the case of logrotate, the cofiguration file
used, /etc/logrotate.d/.conf, has an include directive, not prominently
displayed, for all the other configuration files in the same directory as
.conf.  It is surprising that things seem to just "break" in linux?</RANT>

Joel


On Sat, Jun 22, 2002 at 08:48:45AM -0600, Collins wrote:
> On Sat, 22 Jun 2002 10:20:38 -0400 Joel Hammer <Joel at hammershome.com>
> wrote:
> > I am using Caldera 2.4.
> > 
> > I am messing with my syslogs for the first time in some many months.
> > 
> > My logs are being properly rotated and all, but I can't figure out
> > which program is doing it.
> > 
> > There is a directory
> >  /etc/logrotate.d which contains:
> >  .conf ftpd  samba  syslog  tr   
> > 
> > which contain the configuration for rotating the various types of
> > logs.
> > 
> > Problem is, I can't figure out which script/program is accessing
> > these configuration files.
> > 
> > Any insight appreciated,
> 
> Most likely a cron file.
> 
> -- 
> Collins Richey - Denver Area - WWTLRD?
> gentoo(since 01/01/01) 2.4.18+(ext3) xfce-sylpheed-mozilla
> _______________________________________________
> Linux-users mailing list - http://linux-sxs.org/mailman/listinfo/linux-users
> Subscribe/Unsubscribe info, Archives,and Digests are located at the above URL.



More information about the Linux-users mailing list