Re: mdmonitor not triggering program on fail events

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Ow Mun Heng wrote:
> Currently, from what I see, init is calling mdmonitor with these options
> 
> mdadm --monitor --scan -f
> 
> (note that the --program is not there)
> 
> and this is in my /etc/mdadm.conf
> 
> MAILADDR root
> PROGRAM /root/program_2_run.sh
> 
> short of hacking the mdmonitor script to hardcode the program there, is
> there an alternate, more elegant way?

What's not elegant about that? Sure, an /etc/sysconfig/mdmonitor would
probably have been better, but it scans the config file for MAIL and
PROGRAM being in it and would stop otherwise.

Ralph

Attachment: pgpVzh7J1JRBa.pgp
Description: PGP signature

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux