Restart Apache via Cron

I want to restart Apache daily via cron, (running Redhat 7.1) so I edited crontab and inserted the following line:

30 3 * * * /etc/rc.d/init.d/httpd restart

Is this an acceptable way to restart Apache every morning at 3:30 am? If not what is a better way and the reasons?

How do I know if it restarts since it does not send an email since it is the root cron and not one of the accounts?

Many thanks for this forum and your help!

Hostseeker

 

 

 

 

Top