summaryrefslogtreecommitdiff
path: root/httpd.logrotate
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-08-01 15:35:15 +0000
committerCoprDistGit <infra@openeuler.org>2024-08-01 15:35:15 +0000
commit7e3160d37441f705381c91dd724ca5557eea322a (patch)
tree4d0a57939694fecbd2850cf3f43e9aaa1ea60017 /httpd.logrotate
parent69b3fe0871448d1afbdda2550a37cee9cca8cfd1 (diff)
automatic import of httpdopeneuler24.03_LTS
Diffstat (limited to 'httpd.logrotate')
-rw-r--r--httpd.logrotate11
1 files changed, 11 insertions, 0 deletions
diff --git a/httpd.logrotate b/httpd.logrotate
new file mode 100644
index 0000000..c5a008c
--- /dev/null
+++ b/httpd.logrotate
@@ -0,0 +1,11 @@
+# Note that logs are not compressed unless "compress" is configured,
+# which can be done either here or globally in /etc/logrotate.conf.
+/var/log/httpd/*log {
+ missingok
+ notifempty
+ sharedscripts
+ delaycompress
+ postrotate
+ /bin/systemctl reload httpd.service > /dev/null 2>/dev/null || true
+ endscript
+}