I'm also get spammed 1/day/server.

On Tue, Jul 06, 2021 at 06:54:24AM +0200, Cron Daemon wrote:
> /etc/cron.daily/logrotate:
> Reloading Apache httpd web server: apache2.

The cause is #979813 whose "fix" included:

-       postrotate
-                if invoke-rc.d apache2 status > /dev/null 2>&1; then \
-                    invoke-rc.d apache2 reload > /dev/null 2>&1; \
-                fi;
+    postrotate
+       if pgrep -f ^/usr/sbin/apache2 > /dev/null; then
+           invoke-rc.d apache2 reload
+       fi

which dropped redirection in the reload line.

Changing querying status to pgrep is also bogus: it will detect any apache2
process rather than just ours.  But this is not the issue at hand.

To stop the mails from logrotate, could you please change back:
-           invoke-rc.d apache2 reload
+           invoke-rc.d apache2 reload > /dev/null 2>&1

otherwise, people running Bullseye will be mightily unhappy.

I also wonder why such a cleanup was done late during hard freeze.


Meow!
-- 
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Imagine there are bandits in your house, your kid is bleeding out,
⢿⡄⠘⠷⠚⠋⠀ the house is on fire, and seven giant trumpets are playing in the
⠈⠳⣄⠀⠀⠀⠀ sky.  Your cat demands food.  The priority should be obvious...

Reply via email to