Answer the question
In order to leave comments, you need to log in
How to create a cron task that will restart httpd every five minutes?
For some purposes, you need to restart the httpd service every five minutes.
I still don't understand what the task line should look like.
PS: The OS on the server is CentOS 5
Answer the question
In order to leave comments, you need to log in
*/5 * * * * root apachectl restart
Or /etc/init.d/httpd restart instead of apachectl restart
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question