From c55d94fac79223ab9b003cd757ef8000a70a9d72 Mon Sep 17 00:00:00 2001 From: Joe Orton Date: Oct 08 2019 08:47:42 +0000 Subject: Add section on logfile rotation & compression. --- diff --git a/httpd.service.xml b/httpd.service.xml index b2c72dd..c518549 100644 --- a/httpd.service.xml +++ b/httpd.service.xml @@ -233,6 +233,24 @@ Wants=network-online.target + Logging and log file rotation + + The httpd daemon is configured to log + to the /var/log/httpd directory by default, + and a drop-in for logrotate is provided at + /etc/logrotate.d/httpd to enable log file + rotation. The httpd.service systemd unit is + reloaded after a logrotate run. + + Log file compression is not enabled by default; since + httpd can continue writing to open log files + for some time after a reload (graceful restart), if compression + is enabled the delaycompress option must be + present (as in the default) to delay compression of log files to + a later rotation run. + + + Socket activation Socket activation (see @@ -322,7 +340,8 @@ ReloadPropagatedFrom=httpd.service systemd.exec5, systemd.socket5, httpd_selinux8, - semanage8 + semanage8, + logrotate8