E
E
EpikHigh2014-06-26 18:53:46
Task Schedulers
EpikHigh, 2014-06-26 18:53:46

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

2 answer(s)
V
Vlad Zhivotnev, 2014-06-26
@inkvizitor68sl

*/5 * * * * root apachectl restart
Or /etc/init.d/httpd restart instead of apachectl restart

P
Puma Thailand, 2014-06-27
@opium

service httpd restart

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question