in this example I want to show you how you could be able to do so by a sample that would restart apache every 45 miniutes
to acomplish this you should creat a cronjob so you should go to the /var/spool/cron/ and edit the root file that is the root cronjob
then add this line to it
*/45 * * * * /scripts/restartsrv_apache
this will restart apache every 45 miniutes
Related posts: