From 6ecbbe0b37bd8031d7adfa3539b90d272e007474 Mon Sep 17 00:00:00 2001 From: Chiradeep Vittal Date: Wed, 12 Jan 2011 11:15:08 -0800 Subject: [PATCH] Add logrotate for dnsmasq and haproxy --- .../systemvm/debian/config/etc/logrotate.d/dnsmasq | 13 +++++++++++++ .../systemvm/debian/config/etc/logrotate.d/haproxy | 10 ++++++++++ 2 files changed, 23 insertions(+) create mode 100644 patches/systemvm/debian/config/etc/logrotate.d/dnsmasq create mode 100644 patches/systemvm/debian/config/etc/logrotate.d/haproxy diff --git a/patches/systemvm/debian/config/etc/logrotate.d/dnsmasq b/patches/systemvm/debian/config/etc/logrotate.d/dnsmasq new file mode 100644 index 00000000000..f448420e176 --- /dev/null +++ b/patches/systemvm/debian/config/etc/logrotate.d/dnsmasq @@ -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 +} + diff --git a/patches/systemvm/debian/config/etc/logrotate.d/haproxy b/patches/systemvm/debian/config/etc/logrotate.d/haproxy new file mode 100644 index 00000000000..858fe2a1c3a --- /dev/null +++ b/patches/systemvm/debian/config/etc/logrotate.d/haproxy @@ -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 +}