This commit is contained in:
Bob Mottram 2018-05-09 21:16:31 +01:00
parent 3e913e5887
commit 6e578a8bb7
1 changed files with 2 additions and 0 deletions

View File

@ -1664,6 +1664,8 @@ function refresh_gpg_keys {
}
function prevent_mail_process_overrun {
# This prevents any large buildup of exim processes, perhaps due to
# Tor unavailability, from disabling the server
{ echo '#!/bin/bash';
echo "exim_ctr=\$(pgrep \"exim4\" | wc -l)";
echo "if [ \"\$exim_ctr\" -gt 5 ]; then";