Bug#582360: mdadm: sends cron email when there are no arrays enabled

martin f krafft madduck at debian.org
Thu May 20 09:17:41 UTC 2010


forcemerge 580825 582360
thanks

also sprach Tollef Fog Heen <tfheen at debian.org> [2010.05.20.0944 +0200]:
> Currently, once in a while, mdadm (in testing at least) sends me mails
> as follows below:
> 
>    From: root at XX (Cron Daemon)
>    Subject: Cron <root at XX> [ -x /usr/share/mdadm/checkarray ] && [ $(date +%d) -le 7 ] && /usr/share/mdadm/checkarray --cron --all --quiet (failed)
>    To: root at XX
>    Date: Sun, 16 May 2010 00:57:01 +0100 (BST)
>    
>    command failed with exit status 1
> 
> It would be nicer if it didnt't send any if the reason for it exiting
> non-zero is that there are no arrays running.

Actually, I think this is due to the []-date test failing: #580825.

However, it is true that with the recent change in cron, checkarray
should not exit non-zero when there are no arrays, I guess.
I changed that to never exit non-zero, even if --cron is not given.
The warning is emitted if run without --cron, and that should be
enough.

http://git.debian.org/?p=pkg-mdadm/mdadm.git;a=commitdiff;h=b63f595c5d216751936ecd44b23d38860d79cc4c

-- 
 .''`.   martin f. krafft <madduck at d.o>      Related projects:
: :'  :  proud Debian developer               http://debiansystem.info
`. `'`   http://people.debian.org/~madduck    http://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature (see http://martin-krafft.net/gpg/)
URL: <http://lists.alioth.debian.org/pipermail/pkg-mdadm-devel/attachments/20100520/79b0bb4e/attachment.pgp>


More information about the pkg-mdadm-devel mailing list