Crontab - Restart apache every 3 hours [closed]
Why do you want to do this?If you are experiencing a specific problem with Apache.It Will definitely be more beneficial for you to have a look into the access/error logs, and make adjustments accordingly.Give us some more information and we can look into your logs and give you a more appropriate solution.
None the less heres the cron to restart apache.
0 */3 * * */ root/restart_apache > /dev/null 2>&1
/etc/init.d/httpd restart