Have the following cronjob set up in root's crontab: (centos 5.x)
2 * * * * /usr/bin/curl --basic --user 'user:pass' http://localhost/cron/do_some_action > /var/www/app/cronlog.log
Invoking the actual command works as expected, however when the cronjob runs, it always times out. I've used set_time_limit()
and related php.ini settings to ensure it's not PHP dying, and /var/log/cron looks normal to me:
Jun 4 10:02:01 foobar crond[12138]: (root) CMD ([snip])
Any ideas about why the cronjob would be dying?