Security in file /etc/rc.d/rc.local

Posted August 3, 2020 473 views


I have server with RAID 1. I want to monitoring and receive email alert if have any problem in hard disks.

I readed some guides in internet and they says this:

1- Send alert to email if some disk have problems: nano /etc/mdadm.conf -> add to bottom “MAILADDR root”
2- Enable the scan and monitoring: mdadm –monitor –scan –daemonize
3- Enable the scan and monitoring when restart the server: nano /etc/rc.d/rc.local -> add to bottom “mdadm –monitor –scan –daemonize”
4- Change rc.local permits: chmod +x /etc/rc.d/rc.local

1- This is correct steps or you recommend me other configuration?.
2- Is safe change permits in file “/etc/rc.d/rc.local”?.

Thank you very much. Have a nice day!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer


If I use “systemctl start mdmonitor” and “systemctl enable mdmonitor” I will get the same result that the command “mdadm –monitor –scan –daemonize” ?.

If is same result I not need add command “mdadm –monitor –scan –daemonize” to file “/etc/rc.d/rc.local” and not need change her permits.

Thank you very much.