summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorBrion Vibber <brion@status.net>2010-01-15 11:13:06 -0800
committerBrion Vibber <brion@status.net>2010-01-15 11:13:06 -0800
commit598072468c9fdb07df2cda9da207f123b14566ae (patch)
tree9846456771d776a0ec29ccc68ea8325dd44968a0 /scripts
parent963260d2628cdaccd330c47761ebbf972193f15e (diff)
--xmpp-only hack for queuedaemon.php to run separate queue daemon with only xmpp threads
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/queuedaemon.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/queuedaemon.php b/scripts/queuedaemon.php
index f8bade39d..162f617e0 100755
--- a/scripts/queuedaemon.php
+++ b/scripts/queuedaemon.php
@@ -21,7 +21,7 @@
define('INSTALLDIR', realpath(dirname(__FILE__) . '/..'));
$shortoptions = 'fi:at:';
-$longoptions = array('id=', 'foreground', 'all', 'threads=', 'skip-xmpp');
+$longoptions = array('id=', 'foreground', 'all', 'threads=', 'skip-xmpp', 'xmpp-only');
/**
* Attempts to get a count of the processors available on the current system
@@ -263,6 +263,9 @@ $all = have_option('a') || have_option('--all');
if (have_option('--skip-xmpp')) {
define('XMPP_EMERGENCY_FLAG', true);
}
+if (have_option('--xmpp-only')) {
+ define('XMPP_ONLY_FLAG', true);
+}
$daemon = new QueueDaemon($id, $daemonize, $threads, $all);
$daemon->runOnce();