From 5a4d410cdf47c3d0bc4714a34d3e9b5ade6b696d Mon Sep 17 00:00:00 2001 From: Chiradeep Vittal Date: Wed, 6 Oct 2010 14:06:41 -0700 Subject: [PATCH] logrotate dnsmasq logs --- patches/xenserver/etc/logrotate.d/dnsmasq | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 patches/xenserver/etc/logrotate.d/dnsmasq diff --git a/patches/xenserver/etc/logrotate.d/dnsmasq b/patches/xenserver/etc/logrotate.d/dnsmasq new file mode 100644 index 00000000000..a2838753d0c --- /dev/null +++ b/patches/xenserver/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 dnsmasq dnsmasq +} +