diff options
author | Evan Prodromou <evan@status.net> | 2010-01-16 07:48:59 -0800 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-01-16 07:48:59 -0800 |
commit | 21c3e08804b312aaea21ae6bd0a0691304d6e4cd (patch) | |
tree | 9a950feabe17cd52e241eddf06d61409a190bba6 /scripts/queuedaemon.php | |
parent | d6b8b13116b9a2de5d745487277551b281796975 (diff) | |
parent | 598072468c9fdb07df2cda9da207f123b14566ae (diff) |
Merge branch 'master' of git@gitorious.org:statusnet/mainline
Diffstat (limited to 'scripts/queuedaemon.php')
-rwxr-xr-x | scripts/queuedaemon.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/scripts/queuedaemon.php b/scripts/queuedaemon.php index 8ef364fe7..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='); +$longoptions = array('id=', 'foreground', 'all', 'threads=', 'skip-xmpp', 'xmpp-only'); /** * Attempts to get a count of the processors available on the current system @@ -260,6 +260,13 @@ if (!$threads) { $daemonize = !(have_option('f') || have_option('--foreground')); $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(); |