Hi, I'm trying to figure out which process is rotating my maillog every Sunday at 4:03 am. This happens on all of my centos 4 boxes. AFAICT, logrotate is not running. This is from a fairly minimal install, so I'm assuming this is a default process. --- [root at penguin ~]# ls -l /var/log/maill* -rw------- 1 root root 230603836 Sep 27 16:30 /var/log/maillog -rw------- 1 root root 526100566 Sep 24 04:03 /var/log/maillog.1 -rw------- 1 root root 539020377 Sep 17 04:03 /var/log/maillog.2 -rw------- 1 root root 513822843 Sep 10 04:03 /var/log/maillog.3 -rw------- 1 root root 746455304 Sep 3 04:03 /var/log/maillog.4 [root at penguin ~]# crontab -l no crontab for root [root at penguin ~]# ls -l /var/spool/cron/ total 0 [root at penguin ~]# --- Thanks, Michael
> -----Original Message----- > From: centos-bounces at centos.org > [mailto:centos-bounces at centos.org] On Behalf Of Michael Grinnell > Sent: Wednesday, September 27, 2006 3:43 PM > To: CentOS mailing list > Subject: [CentOS] sendmail maillog rotation on centos 4 > > > Hi, > > I'm trying to figure out which process is rotating my maillog every > Sunday at 4:03 am. This happens on all of my centos 4 boxes. > AFAICT, logrotate is not running. This is from a fairly minimal > install, so I'm assuming this is a default process. > > --- > [root at penguin ~]# ls -l /var/log/maill* > -rw------- 1 root root 230603836 Sep 27 16:30 /var/log/maillog > -rw------- 1 root root 526100566 Sep 24 04:03 /var/log/maillog.1 > -rw------- 1 root root 539020377 Sep 17 04:03 /var/log/maillog.2 > -rw------- 1 root root 513822843 Sep 10 04:03 /var/log/maillog.3 > -rw------- 1 root root 746455304 Sep 3 04:03 > /var/log/maillog.4 [root at penguin ~]# crontab -l no crontab > for root [root at penguin ~]# ls -l /var/spool/cron/ total 0 > [root at penguin ~]# > --- > > Thanks, > Michael > _______________________________________________ > CentOS mailing list > CentOS at centos.org http://lists.centos.org/mailman/listinfo/centos >A stock install of CentOS 4 has logrotate running.>From the man page:Cron searches /var/spool/cron for crontab files which are named after accounts in /etc/passwd; crontabs found are loaded into memory. Cron also searches for /etc/crontab and the files in the /etc/cron.d direc- tory, which are in a different format (see crontab(5)). If you look at /etc/crontab you'll see the run-parts language calling every script in the /etc/cron.daily|weekly|monthly directories. alex
doh That was it. Thanks, Michael On Sep 27, 2006, at 4:47 PM, replies-lists- centos at listmail.innovate.net wrote:> look in /etc/cron.daily (which is invoked by /etc/crontab), i suspect > you'll find a logrotate script there. > > > - Rick > > > ------------ Original Message ------------ >> Date: Wednesday, September 27, 2006 04:42:30 PM -0400 >> Subject: [CentOS] sendmail maillog rotation on centos 4 >> >> Hi, >> >> I'm trying to figure out which process is rotating my maillog every >> Sunday at 4:03 am. This happens on all of my centos 4 boxes. >> AFAICT, logrotate is not running. This is from a fairly minimal >> install, so I'm assuming this is a default process. >> >> --- >> [root at penguin ~]# ls -l /var/log/maill* >> -rw------- 1 root root 230603836 Sep 27 16:30 /var/log/maillog >> -rw------- 1 root root 526100566 Sep 24 04:03 /var/log/maillog.1 >> -rw------- 1 root root 539020377 Sep 17 04:03 /var/log/maillog.2 >> -rw------- 1 root root 513822843 Sep 10 04:03 /var/log/maillog.3 >> -rw------- 1 root root 746455304 Sep 3 04:03 /var/log/maillog.4 >> [root at penguin ~]# crontab -l >> no crontab for root >> [root at penguin ~]# ls -l /var/spool/cron/ >> total 0 >> [root at penguin ~]# >> --- >> >> Thanks, >> Michael >> _______________________________________________ >> CentOS mailing list >> CentOS at centos.org >> http://lists.centos.org/mailman/listinfo/centos > > ---------- End Original Message ----------