function hosting_queues_cron_cmd

7.x-3.x hosting.queues.inc hosting_queues_cron_cmd()

Generate a crontab entry.

Return value

string The lines to be added.

See also

hosting_queues_cron_removal()

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 199
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=$_SERVER[PATH]
* * * * * $command
END;
  return $return;
}