mirror of
https://github.com/apache/cloudstack
synced 2026-08-27 08:15:09 +00:00
Add logrotate for dnsmasq and haproxy
This commit is contained in:
parent
ca2d32ad44
commit
6ecbbe0b37
13
patches/systemvm/debian/config/etc/logrotate.d/dnsmasq
Normal file
13
patches/systemvm/debian/config/etc/logrotate.d/dnsmasq
Normal file
@ -0,0 +1,13 @@
|
||||
/var/log/dnsmasq.log {
|
||||
daily
|
||||
missingok
|
||||
rotate 5
|
||||
notifempty
|
||||
delaycompress
|
||||
sharedscripts
|
||||
postrotate
|
||||
[ ! -f /var/run/dnsmasq.pid ] || kill -USR2 `cat /var/run/dnsmasq.pid`
|
||||
endscript
|
||||
create 0640 nobody root
|
||||
}
|
||||
|
||||
10
patches/systemvm/debian/config/etc/logrotate.d/haproxy
Normal file
10
patches/systemvm/debian/config/etc/logrotate.d/haproxy
Normal file
@ -0,0 +1,10 @@
|
||||
/var/log/haproxy.log {
|
||||
daily
|
||||
rotate 5
|
||||
missingok
|
||||
notifempty
|
||||
size 10M
|
||||
postrotate
|
||||
/bin/kill -HUP `cat /var/run/rsyslog.pid 2> /dev/null` 2> /dev/null || true
|
||||
endscript
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user