diff options
author | Alejandro Hernandez <alejandro.hernandez@linux.intel.com> | 2014-11-19 15:29:53 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-11-25 12:58:16 +0000 |
commit | 23303ff8f6fba72be5c295981631bb357a583924 (patch) | |
tree | 70305084d6ef951ed38edd7a4db94b2cb6d68749 | |
parent | 579469a32ea9fd2052a7a88c0b9ec34796fd41b8 (diff) | |
download | openembedded-core-23303ff8f6fba72be5c295981631bb357a583924.tar.gz openembedded-core-23303ff8f6fba72be5c295981631bb357a583924.tar.bz2 openembedded-core-23303ff8f6fba72be5c295981631bb357a583924.zip |
cronie: Added default crontab
Added default configuration to crontab, for instructive pruposes
Added /etc/crontab to CONFFILES to avoid overwriting if updating via PMS
[YOCTO 6644]
Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
-rw-r--r-- | meta/recipes-extended/cronie/cronie/crontab | 6 | ||||
-rw-r--r-- | meta/recipes-extended/cronie/cronie_1.4.12.bb | 3 |
2 files changed, 7 insertions, 2 deletions
diff --git a/meta/recipes-extended/cronie/cronie/crontab b/meta/recipes-extended/cronie/cronie/crontab index cc9169eda9..22c4feb2dc 100644 --- a/meta/recipes-extended/cronie/cronie/crontab +++ b/meta/recipes-extended/cronie/cronie/crontab @@ -7,4 +7,8 @@ SHELL=/bin/sh PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin -# m h dom mon dow user command +# 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/meta/recipes-extended/cronie/cronie_1.4.12.bb b/meta/recipes-extended/cronie/cronie_1.4.12.bb index e40475662d..977332b3fc 100644 --- a/meta/recipes-extended/cronie/cronie_1.4.12.bb +++ b/meta/recipes-extended/cronie/cronie_1.4.12.bb @@ -63,7 +63,7 @@ do_install_append () { mkdir -p ${D}${sysconfdir}/cron.weekly mkdir -p ${D}${sysconfdir}/cron.monthly touch ${D}${sysconfdir}/cron.deny - + # below setting is necessary to allow normal user using crontab # setgid for crontab binary @@ -78,3 +78,4 @@ do_install_append () { } FILES_${PN} += "${sysconfdir}/cron*" +CONFFILES_${PN} += "${sysconfdir}/crontab" |