Quantcast
Channel: monline - Drupal
Viewing all articles
Browse latest Browse all 10

Regular calls to Drupal cron.php scripts on a server with a number of Drupal sites

$
0
0
Calling the cron.php of a Drupal site is fairly easy. You just have to put something similiar into your server's /etc/crontab:
0 * * * * www-data test -x /usr/bin/wget && /usr/bin/wget --bind-address 127.0.0.1 -t 1 "http://example.com/cron.php"
Or you can place this wget call in a file in /etc/cron.hourly.

However on a server with quite some Drupal sites (and possibly a number of virtualhosts) the maintenance of these cron.php calls in your crontab becomes very annoying (and it is prone to errors). On a busy development server Drupal sites come and go every day. So why not do these calls automatically? The attached script does just that. Smile

read more


Viewing all articles
Browse latest Browse all 10

Trending Articles