From f281f0a7e32c0fcfd51fc07a76203427e1c6c25b Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 29 Dec 2002 21:46:13 +0000 Subject: - Fixed a typo in the documentation, as well as extended the documentation while I was at it. --- modules/system/system.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/system/system.module') diff --git a/modules/system/system.module b/modules/system/system.module index 19678c1a8..112b05a57 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -24,7 +24,7 @@ function system_help_cron() { $output .= "

Whenever ". path_uri() ."cron.php is accessed, cron will run: it checks for the jobs cron controls, and their periods in seconds. If a certain task wasn't executed in the last n seconds, where n is the period of that job, it will be executed. When all the executed commands terminate, cron is done.

"; $output .= "

The recommended way to setup your cron system is to setup a Unix/Linux crontab that frequently visits ". path_uri() ."cron.php. Note that cron does not guarantee the commands will be executed at the specified interval. However, Drupal will try his best and run the crons as close to the specified intervals as possible. The more you visit cron.php, the more accurate cron will be.

"; $output .= "

If your hosting company does not allow you to setup crontabs, you can always ask someone else to setup a crontab for you. After all, virtually any Unix/Linux machine with access to the internet can setup a crontab to frequently visit ". path_uri() ."cron.php.

"; - $output .= "

For the Unix/Linux crontab itself, use a browser like lynx or wget but make sure the process terminates: either use /usr/bin/lynx -source cron.php or /usr/bin/wget -O /dev/null cron.php. Take a look at the example scripts in the scripts-directory and make sure to adjust them to your needs. A good crontab-line to run the cron-script once every hour would be:

     00 * * * * /home/www/drupal/scripts/cron-lynx

"; + $output .= "

For the Unix/Linux crontab itself, use a browser like lynx or wget but make sure the process terminates: either use /usr/bin/lynx -source cron.php or /usr/bin/wget -O /dev/null cron.php. Take a look at the example scripts in the scripts-directory and make sure to adjust them to your needs. A good crontab-line to run the cron-script once every hour would be:

     00 * * * * /home/www/drupal/scripts/cron-lynx.sh
Note that it is essential to access cron.php using a browser; don't run it using command line PHP and avoid using localhost or 127.0.0.1, or some features won't work as expected. For all the environment variables to be correct; use a browser to access cron.php on a publicly accessible domain.

"; return $output; } -- cgit v1.2.3