From c55d94fac79223ab9b003cd757ef8000a70a9d72 Mon Sep 17 00:00:00 2001 From: Joe Orton Date: Tue, 8 Oct 2019 09:47:42 +0100 Subject: [PATCH] Add section on logfile rotation & compression. --- httpd.service.xml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/httpd.service.xml b/httpd.service.xml index b2c72dd..c518549 100644 --- a/httpd.service.xml +++ b/httpd.service.xml @@ -232,6 +232,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 @@ -322,7 +340,8 @@ ReloadPropagatedFrom=httpd.service systemd.exec5, systemd.socket5, httpd_selinux8, - semanage8 + semanage8, + logrotate8