From: Mikael Nordfeldth Date: Thu, 3 Aug 2017 07:53:00 +0000 (+0200) Subject: List the thread config value in lib/default.php X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6938d26524d7b82914d9a16d09fc81f30e204d04;p=quix0rs-gnu-social.git List the thread config value in lib/default.php --- 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');