summaryrefslogtreecommitdiff
path: root/haproxy.logrotate
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-08-05 02:39:40 +0000
committerCoprDistGit <infra@openeuler.org>2024-08-05 02:39:40 +0000
commit2f2929cf687addbcb873408cdaf103ca292ec6bb (patch)
treeee361944e7f9419e9fddad69bc990f37899d1dc6 /haproxy.logrotate
parenta1ae1c533e8037d89b73c984aa1b85b28b0a5560 (diff)
automatic import of haproxyopeneuler24.03_LTS
Diffstat (limited to 'haproxy.logrotate')
-rw-r--r--haproxy.logrotate12
1 files changed, 12 insertions, 0 deletions
diff --git a/haproxy.logrotate b/haproxy.logrotate
new file mode 100644
index 0000000..96544e0
--- /dev/null
+++ b/haproxy.logrotate
@@ -0,0 +1,12 @@
+/var/log/haproxy.log {
+ daily
+ rotate 10
+ missingok
+ notifempty
+ compress
+ sharedscripts
+ postrotate
+ /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
+ /bin/kill -HUP `cat /var/run/rsyslogd.pid 2> /dev/null` 2> /dev/null || true
+ endscript
+}