/usr/bin/horde-queue-run-tasks is in php-horde 5.1.5+debian1-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | #!/usr/bin/php
<?php
/**
* Copyright 2013-2013 Horde LLC (http://www.horde.org/)
*
* See the enclosed file COPYING for license information (LGPL). If you
* did not receive this file, see http://www.horde.org/licenses/lgpl21.
*
* @author Ralf Lang <lang@b1-systems.de>
* @category Horde
* @license http://www.horde.org/licenses/lgpl21 LGPL 2.1
* @package Horde
*/
$baseFile = __DIR__ . '/../lib/Application.php';
if (file_exists($baseFile)) {
require_once $baseFile;
} else {
require_once 'PEAR/Config.php';
require_once PEAR_Config::singleton()
->get('horde_dir', null, 'pear.horde.org') . '/lib/Application.php';
}
$queue = empty($argv[1]) ? 'default' : $argv[1];
Horde_Registry::appInit('horde', array('cli' => true, 'user_admin' => true));
$db = $injector->getInstance('Horde_Db_Adapter');
$storage = new Horde_Queue_Storage_Db($db, $queue);
$runner = new Horde_Queue_Runner_RequestShutdown($storage);
|