>>>>> "Alexander" == Alexander Shaw <[EMAIL PROTECTED]> writes:
> Hi all, In the process of making things up as I go along again. > I have created a logrotate file on the direction of another > person to back up my databases on MySQL. Now I understand that > this needs to be called from Cron for it to work. > Having had a browse around I see there is a reference to > logrotate in the cron.daily folder, do I need to add anything > extra to ensure that the file I have added is executed? For the > purpose of testing what extra could I add to run the process at > short intervals to check it is working? Alex, You will want to look at /etc/logrotate.conf and /etc/logrotate.d/mysqld. If you installed MySQL properly, there may be an "/etc/logrotate.d/mysqld" file existing. This is what it looks like on my system: /var/log/mysqld.log { missingok create 0640 mysql mysql prerotate [ -e /var/lock/subsys/mysqld ] && /usr/bin/mysqladmin flush-logs || /bin/true endscript postrotate [ -e /var/lock/subsys/mysqld ] && /usr/bin/mysqladmin flush-logs || /bin/true endscript } You will also want to look at the "logrotate --force" command in the manpage for logrotate. Regards, Gregg _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list