From a1feb35f9c6d2105574ceb5593f65a3f9f90b369 Mon Sep 17 00:00:00 2001 From: Jesse Gilles Date: Mon, 6 Apr 2015 16:43:59 -0500 Subject: logrotate: add bbappend to rotate logs hourly instead of daily --- recipes-extended/logrotate/logrotate_3.8.7.bbappend | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 recipes-extended/logrotate/logrotate_3.8.7.bbappend (limited to 'recipes-extended') diff --git a/recipes-extended/logrotate/logrotate_3.8.7.bbappend b/recipes-extended/logrotate/logrotate_3.8.7.bbappend new file mode 100644 index 0000000..98b7b60 --- /dev/null +++ b/recipes-extended/logrotate/logrotate_3.8.7.bbappend @@ -0,0 +1,8 @@ + +do_install_append() { +# rotate logs hourly instead of daily + 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 +} + -- cgit v1.2.3