blob: de7a0c32e069f28ed9d62fe3716f6eea0ff977ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
PR .= ".mlinux3"
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
SRC_URI += "file://logrotate.conf"
# consider Systemd here someday. Also prevent logrotate from starting if it is already running
# use startdaemon?
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}/
}
|