you can add a daemon to getvaliddaemons
This commit is contained in:
parent
eb41d9e5da
commit
6a088afd4b
@ -264,4 +264,7 @@ EndEnqueueNotice: after adding a notice to the queues
|
|||||||
|
|
||||||
UnqueueHandleNotice: Handle a notice when no queue manager is available
|
UnqueueHandleNotice: Handle a notice when no queue manager is available
|
||||||
- $notice: the notice to handle
|
- $notice: the notice to handle
|
||||||
- $queue: the "queue" that is being executed
|
- $queue: the "queue" that is being executed
|
||||||
|
|
||||||
|
GetValidDaemons: Just before determining which daemons to run
|
||||||
|
- &$daemons: modifiable list of daemon scripts to run, filenames relative to scripts/
|
||||||
|
@ -35,20 +35,31 @@ ENDOFHELP;
|
|||||||
|
|
||||||
require_once INSTALLDIR.'/scripts/commandline.inc';
|
require_once INSTALLDIR.'/scripts/commandline.inc';
|
||||||
|
|
||||||
|
$daemons = array();
|
||||||
|
|
||||||
if(common_config('xmpp','enabled')) {
|
if(common_config('xmpp','enabled')) {
|
||||||
echo "xmppdaemon.php jabberqueuehandler.php publicqueuehandler.php ";
|
$daemons[] = 'xmppdaemon.php';
|
||||||
echo "xmppconfirmhandler.php ";
|
$daemons[] = 'jabberqueuehandler.php';
|
||||||
|
$daemons[] = 'publicqueuehandler.php';
|
||||||
|
$daemons[] = 'xmppconfirmhandler.php';
|
||||||
}
|
}
|
||||||
if(common_config('twitterbridge','enabled')) {
|
if(common_config('twitterbridge','enabled')) {
|
||||||
echo "twitterstatusfetcher.php ";
|
$daemons[] = 'twitterstatusfetcher.php';
|
||||||
}
|
}
|
||||||
echo "ombqueuehandler.php ";
|
$daemons[] = 'ombqueuehandler.php';
|
||||||
if (common_config('twitter', 'enabled')) {
|
if (common_config('twitter', 'enabled')) {
|
||||||
echo "twitterqueuehandler.php ";
|
$daemons[] = 'twitterqueuehandler.php';
|
||||||
echo "synctwitterfriends.php ";
|
$daemons[] = 'synctwitterfriends.php';
|
||||||
}
|
}
|
||||||
echo "facebookqueuehandler.php ";
|
$daemons[] = 'facebookqueuehandler.php';
|
||||||
echo "pingqueuehandler.php ";
|
$daemons[] = 'pingqueuehandler.php';
|
||||||
if (common_config('sms', 'enabled')) {
|
if (common_config('sms', 'enabled')) {
|
||||||
echo "smsqueuehandler.php ";
|
$daemons[] = 'smsqueuehandler.php';
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Event::handle('GetValidDaemons', array(&$daemons))) {
|
||||||
|
foreach ($daemons as $daemon) {
|
||||||
|
print $daemon . ' ';
|
||||||
|
}
|
||||||
|
print "\n";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user