Forum Moderators: bakedjake

Message Too Old, No Replies

crontab help to reload httpd

         

mikeseo

3:46 am on Feb 11, 2005 (gmt 0)

10+ Year Member



I type crontab -e to edit crontab file, I want to reload httpd every hour so would I add a line something like?:

1 * * * * root /etc/rc.d/init.d/httpd reload

MattyMoose

8:49 pm on Feb 11, 2005 (gmt 0)

10+ Year Member



1 * * * * root /etc/rc.d/init.d/httpd reload

Yup. Normally you'd do it at the top of the hour, so you'd have a 0, not a 1, and I'm not sure what the "root" is for, since you'd be editing root's crontab anyway.

0 * * * * /etc/rc.d/init.d/httpd reload

The standard format for crons is:
* * * * *
#minute hour day of month month of year day of week (0-6; the 0 refers to Sunday) command

theBear

1:24 am on Feb 15, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Why would you want to relaod the webserver every hour?

You do realise that it holds up your users don't you?

mikeseo

10:47 pm on Feb 15, 2005 (gmt 0)

10+ Year Member



I got a zombie problem.