]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - scripts/queuedaemon.php
temporary --skip-xmpp flag on queuedaemon.php, allows to run queue daemons but skip...
[quix0rs-gnu-social.git] / scripts / queuedaemon.php
index 8ef364fe7b25d9a775a80383d09b654821e2e4e5..f8bade39dbe860e1323fee1ad153bcb18a14431b 100755 (executable)
@@ -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');
 
 /**
  * Attempts to get a count of the processors available on the current system
@@ -260,6 +260,10 @@ 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);
+}
+
 $daemon = new QueueDaemon($id, $daemonize, $threads, $all);
 $daemon->runOnce();