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 13:03:27 +0000 |
commit | 4a7446ed99a0c21ee81c22a69dd3fbbb8e396291 (patch) | |
tree | 1daad1e917312f85a0bd47c58315326473ff0f98 /meta/recipes-extended/cronie | |
parent | b4ba8d6365ba912606c11b52503dc5cb70bd2afe (diff) | |
download | poky-4a7446ed99a0c21ee81c22a69dd3fbbb8e396291.tar.gz |
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]
(From OE-Core rev: 23303ff8f6fba72be5c295981631bb357a583924)
Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/cronie')
-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 @@ | |||
7 | SHELL=/bin/sh | 7 | SHELL=/bin/sh |
8 | PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin | 8 | PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin |
9 | 9 | ||
10 | # m h dom mon dow user command | 10 | # m h dom mon dow user command |
11 | # 1 * * * * root cd / && run-parts /etc/cron.hourly | ||
12 | # 30 7 * * * root cd / && run-parts /etc/cron.daily | ||
13 | # 42 7 * * 7 root cd / && run-parts /etc/cron.weekly | ||
14 | # 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 () { | |||
63 | mkdir -p ${D}${sysconfdir}/cron.weekly | 63 | mkdir -p ${D}${sysconfdir}/cron.weekly |
64 | mkdir -p ${D}${sysconfdir}/cron.monthly | 64 | mkdir -p ${D}${sysconfdir}/cron.monthly |
65 | touch ${D}${sysconfdir}/cron.deny | 65 | touch ${D}${sysconfdir}/cron.deny |
66 | 66 | ||
67 | # below setting is necessary to allow normal user using crontab | 67 | # below setting is necessary to allow normal user using crontab |
68 | 68 | ||
69 | # setgid for crontab binary | 69 | # setgid for crontab binary |
@@ -78,3 +78,4 @@ do_install_append () { | |||
78 | } | 78 | } |
79 | 79 | ||
80 | FILES_${PN} += "${sysconfdir}/cron*" | 80 | FILES_${PN} += "${sysconfdir}/cron*" |
81 | CONFFILES_${PN} += "${sysconfdir}/crontab" | ||