]> git.proxmox.com Git - pmg-api.git/commitdiff
smtp-filter: log pre-fork worker settings on start up
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 21 Feb 2024 14:03:23 +0000 (15:03 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 21 Feb 2024 14:03:25 +0000 (15:03 +0100)
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 <t.lamprecht@proxmox.com>
src/bin/pmg-smtp-filter

index 779ac9425f405c3a239cc84d0c42cbde05333a45..8bff3ec85a9d4a3a22894c8b8c564d9e049ef938 100755 (executable)
@@ -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;