diff options
author | Jeff Hatch <jhatch@multitech.com> | 2017-02-13 14:34:48 -0600 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2017-05-23 15:21:54 -0500 |
commit | 14bf87bc4cf2c389c624ffdb1a6d09c24e3ab9d0 (patch) | |
tree | 029329eb712b12647f786a1562ac33991d2647dc /recipes-extended/logrotate/logrotate_%.bbappend | |
parent | 6fbfbe0cb5df5546beda2b88a19a398ea0ebdbc8 (diff) | |
download | meta-mlinux-14bf87bc4cf2c389c624ffdb1a6d09c24e3ab9d0.tar.gz meta-mlinux-14bf87bc4cf2c389c624ffdb1a6d09c24e3ab9d0.tar.bz2 meta-mlinux-14bf87bc4cf2c389c624ffdb1a6d09c24e3ab9d0.zip |
Initial commit of Yocto 2.1 changes
Diffstat (limited to 'recipes-extended/logrotate/logrotate_%.bbappend')
-rw-r--r-- | recipes-extended/logrotate/logrotate_%.bbappend | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/recipes-extended/logrotate/logrotate_%.bbappend b/recipes-extended/logrotate/logrotate_%.bbappend new file mode 100644 index 0000000..efebecb --- /dev/null +++ b/recipes-extended/logrotate/logrotate_%.bbappend @@ -0,0 +1,15 @@ +PR .= ".mlinux2" + +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}" + +SRC_URI += "file://logrotate.conf" + +do_install_append() { + # setup cron to run logrotate more often + rm -f ${D}${sysconfdir}/cron.daily/logrotate + install -d ${D}${sysconfdir}/cron.d + echo "*/5 * * * * root /usr/sbin/logrotate /etc/logrotate.conf" > ${D}${sysconfdir}/cron.d/logrotate + + install -m 0644 ${WORKDIR}/logrotate.conf ${D}${sysconfdir}/ +} + |