Log rotation, twice

hi folk,

need advise regarding the log rotation, i have the logadm set at

30 2 * * * /usr/sbin/logadm

so it supposed to rotate once per day, but now it rotated twice!

but someone my log will rotate at 2:30 AM, but then another 2 hours later, it creates a new and rotate a new log again, is there anyting wrong or i could check ?

/home/hsbc2/milano/log_dir/log/update.log -C 30 -P 'Tue Dec 13 06:10:00 2011' -c -g hsbc2 -o hsbc2 -p 1d -z 0
-rw-r--r-- 1 hsbc2 hsbc2 211K Nov 17 04:22 update.log.10.gz 
-rw-r--r-- 1 hsbc2 hsbc2 24M Nov 17 02:31 update.log.11.gz 
-rw-r--r-- 1 hsbc2 hsbc2 604K Nov 16 04:23 update.log.12.gz 
-rw-r--r-- 1 hsbc2 hsbc2 26M Nov 16 02:31 update.log.13.gz 
-rw-r--r-- 1 hsbc2 hsbc2 1.3M Nov 15 04:23 update.log.14.gz 
-rw-r--r-- 1 hsbc2 hsbc2 21M Nov 15 02:31 update.log.15.gz 
-rw-r--r-- 1 hsbc2 hsbc2 982K Nov 14 04:23 update.log.16.gz 
-rw-r--r-- 1 hsbc2 hsbc2 14M Nov 14 02:31 update.log.17.gz 

many thanks !!

What does this show:

grep logadm /var/spool/cron/crontabs/*
1 Like

thanks, thats the good one !!!