summaryrefslogtreecommitdiff
path: root/recipes-extended/logrotate/logrotate_3.8.7.bbappend
blob: 300b9b786cc909aba55ecf7dfa52bd11f716dc46 (plain)
1
2
3
4
5
6
7
8
9
PR .= "mlinux1"

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
}