Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 561564 - sys-fs/mdadm - /etc/cron.weekly/mdadm must be executable
Summary: sys-fs/mdadm - /etc/cron.weekly/mdadm must be executable
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-26 13:48 UTC by Alexander Tsoy
Modified: 2016-01-28 10:23 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Tsoy 2015-09-26 13:48:30 UTC
/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
Comment 1 SpanKY gentoo-dev 2015-09-27 06:03:51 UTC
this is by design.  you have to opt into running the cronjob on your system.
Comment 2 Alexander Tsoy 2015-09-27 13:50:16 UTC
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
Comment 3 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2016-01-28 10:23:25 UTC
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>