Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
Security in file /etc/rc.d/rc.local
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.×