From e0675ada31c71e8236a77472003463833029ba52 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Tue, 24 Feb 2015 19:03:39 +0100 Subject: [PATCH 1/2] cronie: Install crontab that cruns daily, weekly, hourly jobs The crontab installed by cronie doesn't actually run the daily files. Fix that so that our logrotate application is being called. Related: SYS#1189 --- recipes-fixes/cronie/cronie_sysmocom.inc | 4 ++++ recipes-fixes/cronie/files/crontab | 14 ++++++++++++++ yocto-shared/cronie_%.bbappend | 1 + 3 files changed, 19 insertions(+) create mode 100644 recipes-fixes/cronie/cronie_sysmocom.inc create mode 100644 recipes-fixes/cronie/files/crontab create mode 100644 yocto-shared/cronie_%.bbappend diff --git a/recipes-fixes/cronie/cronie_sysmocom.inc b/recipes-fixes/cronie/cronie_sysmocom.inc new file mode 100644 index 0000000000..2fa6e19f04 --- /dev/null +++ b/recipes-fixes/cronie/cronie_sysmocom.inc @@ -0,0 +1,4 @@ +THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}" +FILESPATH =. "${@base_set_filespath(["${THISDIR}/files"], d)}:" + +PRINC="1" diff --git a/recipes-fixes/cronie/files/crontab b/recipes-fixes/cronie/files/crontab new file mode 100644 index 0000000000..0f2baf23e3 --- /dev/null +++ b/recipes-fixes/cronie/files/crontab @@ -0,0 +1,14 @@ +# /etc/crontab: system-wide crontab +# Unlike any other crontab you don't have to run the `crontab' +# command to install the new version when you edit this file +# and files in /etc/cron.d. These files also have username fields, +# that none of the other crontabs do. + +SHELL=/bin/sh +PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin + +# m h dom mon dow user command + 1 * * * * root cd / && run-parts /etc/cron.hourly +30 7 * * * root cd / && run-parts /etc/cron.daily +42 7 * * 7 root cd / && run-parts /etc/cron.weekly +55 7 1 * * root cd / && run-parts /etc/cron.monthly diff --git a/yocto-shared/cronie_%.bbappend b/yocto-shared/cronie_%.bbappend new file mode 100644 index 0000000000..98ce3362c0 --- /dev/null +++ b/yocto-shared/cronie_%.bbappend @@ -0,0 +1 @@ +require recipes-fixes/cronie/${PN}_sysmocom.inc From 1241f0e762cadab0ac6d5ccb4e866286b4799d7d Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Fri, 27 Feb 2015 08:44:23 +0100 Subject: [PATCH 2/2] linux-sysmocom: Attempt to enable the nfacct module NETFILTER_NETLINK_ACCT defaults to off. Let's enable it in the config. --- recipes-bsp/linux/linux-sysmocom/sysmocom-bsc/defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes-bsp/linux/linux-sysmocom/sysmocom-bsc/defconfig b/recipes-bsp/linux/linux-sysmocom/sysmocom-bsc/defconfig index 3bfd4de7ad..708b2f4f61 100644 --- a/recipes-bsp/linux/linux-sysmocom/sysmocom-bsc/defconfig +++ b/recipes-bsp/linux/linux-sysmocom/sysmocom-bsc/defconfig @@ -737,7 +737,7 @@ CONFIG_NETFILTER_XT_MATCH_LIMIT=m CONFIG_NETFILTER_XT_MATCH_MAC=m CONFIG_NETFILTER_XT_MATCH_MARK=m CONFIG_NETFILTER_XT_MATCH_MULTIPORT=m -# CONFIG_NETFILTER_XT_MATCH_NFACCT is not set +CONFIG_NETFILTER_XT_MATCH_NFACCT=m # CONFIG_NETFILTER_XT_MATCH_OSF is not set # CONFIG_NETFILTER_XT_MATCH_OWNER is not set CONFIG_NETFILTER_XT_MATCH_POLICY=m