Query on Logrotate
Ravi Shanmugam
ravi.shanmugam at sasken.com
Fri Feb 6 12:05:06 UTC 2009
Hi all,
I have configured logrotate to logorotate every 12 hour. The configurations are as follows.
/etc/cron.d/config
-------------------------
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=""
HOME=/root
0 */12 * * * root logrotate /etc/logrotate.d/test
/etc/logrotate.d/test
--------------------------------
/var/ipaccess/nanobsc/CheckIn/application/log/*.log {
daily
size 5M
missingok
copytruncate
rotate 10
}
But this log files are rotated every hour. Could somebody explain me why this behaviour.
Regds,
RSR
SASKEN BUSINESS DISCLAIMER
-------------------------
This message may contain confidential, proprietary or legally privileged information. In
case you are not the original intended Recipient of the message, you must not, directly or
indirectly, use, Disclose, distribute, print, or copy any part of this message and you are
requested to delete it and inform the sender. Any views expressed in this message are
those of the individual sender unless otherwise stated. Nothing contained in this message
shall be construed as an offer or acceptance of any offer by Sasken Communication
Technologies Limited ("Sasken") unless sent with that express intent and with due
authority of Sasken. Sasken has taken enough precautions to prevent the spread of
viruses. However the company accepts no liability for any damage caused by any virus
transmitted by this email
More information about the redhat-list
mailing list