diff --git a/lib/default.php b/lib/default.php index f465f20bf6..6420a05e5f 100644 --- a/lib/default.php +++ b/lib/default.php @@ -98,6 +98,7 @@ $default = 'queue' => array('enabled' => true, 'daemon' => false, # Use queuedaemon. Default to false + 'threads' => null, # an empty value here uses processor count to determine 'subsystem' => 'db', # default to database, or 'stomp' 'stomp_server' => null, 'queue_basename' => '/queue/statusnet/', diff --git a/scripts/queuedaemon.php b/scripts/queuedaemon.php index 8fb0f8e0ae..e5dc1af810 100755 --- a/scripts/queuedaemon.php +++ b/scripts/queuedaemon.php @@ -176,6 +176,8 @@ if (!$threads) { $threads = getProcessorCount(); } +common_log(LOG_INFO, sprintf('Launching QueueDaemon background process with %1$d threads.', $threads)); + $daemonize = !(have_option('f') || have_option('--foreground')); $all = have_option('a') || have_option('--all');