about summary refs log tree commit diff stats
path: root/tools/conf/etc/logrotate.d/dnsmasq
diff options
context:
space:
mode:
Diffstat (limited to 'tools/conf/etc/logrotate.d/dnsmasq')
-rw-r--r--tools/conf/etc/logrotate.d/dnsmasq11
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/conf/etc/logrotate.d/dnsmasq b/tools/conf/etc/logrotate.d/dnsmasq
new file mode 100644
index 0000000..3151ddc
--- /dev/null
+++ b/tools/conf/etc/logrotate.d/dnsmasq
@@ -0,0 +1,11 @@
+/var/log/dnsmasq {
+    weekly
+    create 0644 root root
+    rotate 5
+    sharedscripts
+    postrotate
+    if [ -f /var/run/syslog-ng.pid ]; then \
+    	kill -HUP `cat /var/run/syslog-ng.pid`; \
+    fi;
+    endscript
+}