From 2da9c7bf0e9f4e0e33c883cdbf98edd85e38bdef Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 21 Feb 2024 15:03:23 +0100 Subject: [PATCH] smtp-filter: log pre-fork worker settings on start up The used pre-fork worker setting can be nice to have for debugging reasons, so output them on start up. Just print to stdout, in testmode this becomes visible on the console and in production mode systemd will route it to the journal. Signed-off-by: Thomas Lamprecht --- src/bin/pmg-smtp-filter | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bin/pmg-smtp-filter b/src/bin/pmg-smtp-filter index 779ac94..8bff3ec 100755 --- a/src/bin/pmg-smtp-filter +++ b/src/bin/pmg-smtp-filter @@ -109,6 +109,9 @@ if (!$opt_testmode) { $max_requests = 20; } +print "using pre-fork workers with min=$min_servers, max=$max_servers, min_spare=$min_spare_servers" + .", max_spare=$max_spare_servers, max_requests=$max_requests\n"; + $opt_max_dequeue = 0 if $opt_testmode; my $daemonize = 1; -- 2.39.5