From f144bbefff161a2d80decc9178cfdc48f8d23497 Mon Sep 17 00:00:00 2001 From: Jesse Gilles Date: Tue, 7 Apr 2015 14:14:40 -0500 Subject: logrotate: rotate logs often, fix cron job --- recipes-extended/logrotate/logrotate_3.8.7.bbappend | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'recipes-extended') diff --git a/recipes-extended/logrotate/logrotate_3.8.7.bbappend b/recipes-extended/logrotate/logrotate_3.8.7.bbappend index 98b7b60..300b9b7 100644 --- a/recipes-extended/logrotate/logrotate_3.8.7.bbappend +++ b/recipes-extended/logrotate/logrotate_3.8.7.bbappend @@ -1,8 +1,9 @@ +PR .= "mlinux1" do_install_append() { -# rotate logs hourly instead of daily + # setup cron to run logrotate more often rm -f ${D}${sysconfdir}/cron.daily/logrotate - install -d ${D}${sysconfdir}/cron.hourly - install -p -m 755 examples/logrotate.cron ${D}${sysconfdir}/cron.hourly/logrotate + install -d ${D}${sysconfdir}/cron.d + echo "*/5 * * * * root /usr/sbin/logrotate /etc/logrotate.conf" > ${D}${sysconfdir}/cron.d/logrotate } -- cgit v1.2.3