On Thu, 12 Apr 2012 21:53:48 +0200 Olaf van der Spek <o...@xwis.net> wrote:
> On 12-4-2012 21:40, Michael Tokarev wrote: > > On 12.04.2012 23:33, Olaf van der Spek wrote: > >> On 12-4-2012 21:29, Michael Tokarev wrote: > >>> On 12.04.2012 23:20, Olaf van der Spek wrote: > >>> > >>>>> Anyway, I think the current behavour is right. > >>>> > >>>> Why? > >>>> Can't you default to mailing root or just using syslog? > >>> > >>> It _is_ the current situation already - to mail to root. > >> > >> Then it shouldn't be complaining about a missing MAILADDR line, should it? > > > > I don't see why not. If you modified debian-generated > > config file and removed the setting, it will complain, > > exactly as in this bugreport. My point is that when > > the package gets installed, it creates the right config > > file with proper email address, and I said exactly this > > several times already. > > > > I don't really want to change default in the source, this > > adds unnecessary changes from upstream which trivially can > > be, and _are_ already handled in the config file. > > That's understandable, upstream should make that change. ;) Upstream disagrees. If you want mail, put an email address in mdadm.conf. If you don't have an email address there, you don't want email. The simplest way to get rid of the message might be to add --syslog or maybe $DEAMON_OPTIONS to the exec $MDADM --monitor --scan --oneshot line in /etc/cron.daily/mdadm I would accept a patch to the documentation to suggest including --syslog in that example. NeilBrown
signature.asc
Description: PGP signature