/etc/cron.weekly/mdadm must have executable bit set. Currently it is ignored by run-parts and run-crons and thus is not started by the cron daemons (cronie at least). $ sudo run-parts --test /etc/cron.weekly $ sudo chmod +x /etc/cron.weekly/mdadm $ sudo run-parts --test /etc/cron.weekly /etc/cron.weekly/mdadm
this is by design. you have to opt into running the cronjob on your system.
For opt-in it's better to change the default value of AUTOCHECK variable in /etc/default/mdadm to false or just comment it out. Executable bit gets lost after every upgrade/reinstall of mdadm package. $ grep AUTOCHECK /usr/sbin/checkarray -c|--cron honour AUTOCHECK setting in /etc/default/mdadm. if [ $cron = 1 ] && ! is_true ${AUTOCHECK:-false}; then
commit ab408969c8dae788f667b1c169746e039f5e91ec Author: Lars Wendler <polynomial-c@gentoo.org> Date: Thu Jan 28 11:08:23 2016 sys-fs/mdadm: Bump to version 3.4 Marked cronjob as executable (bug #561564) and commented the AUTOCHECK variable so people still have to opt in for the autocheck to run. Package-Manager: portage-2.2.27 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>