function hosting_queues_cron_cmd in Hosting 7.3
Same name and namespace in other branches
- 5 hosting.queues.inc \hosting_queues_cron_cmd()
- 6.2 hosting.queues.inc \hosting_queues_cron_cmd()
- 7.4 hosting.queues.inc \hosting_queues_cron_cmd()
Generate a crontab entry.
Return value
string The lines to be added.
See also
Related topics
1 call to hosting_queues_cron_cmd()
- _hosting_setup_cron in ./
hosting.module - Set up the hosting-dispatch command in the aegir user's crontab.
File
- ./
hosting.queues.inc, line 223 - This file defines an API for defining new queues.
Code
function hosting_queues_cron_cmd() {
$command = _hosting_dispatch_cmd();
$return = <<<END
SHELL=/bin/sh
PATH={<span class="php-variable">$_SERVER</span>[<span class="php-string">'PATH'</span>]}
* * * * * {<span class="php-variable">$command</span>}
END;
return $return;
}