RE: [CentOS] sendmail maillog rotation on centos 4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]




> -----Original Message-----
> From: centos-bounces@xxxxxxxxxx 
> [mailto:centos-bounces@xxxxxxxxxx] 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@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@penguin ~]# crontab -l no crontab 
> for root [root@penguin ~]# ls -l /var/spool/cron/ total 0 
> [root@penguin ~]#
> ---
> 
> Thanks,
> Michael
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx 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
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux