summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-dns/dnsmasq/files/dnsmasq.logrotate')
-rw-r--r--net-dns/dnsmasq/files/dnsmasq.logrotate7
1 files changed, 7 insertions, 0 deletions
diff --git a/net-dns/dnsmasq/files/dnsmasq.logrotate b/net-dns/dnsmasq/files/dnsmasq.logrotate
new file mode 100644
index 000000000000..d689f8f875b7
--- /dev/null
+++ b/net-dns/dnsmasq/files/dnsmasq.logrotate
@@ -0,0 +1,7 @@
+/var/log/dnsmasq.log {
+ create 640 dnsmasq root
+ notifempty
+ postrotate
+ test -r /var/run/dnsmasq.pid && kill -USR2 "$(head -n1 /var/run/dnsmasq.pid)"
+ endscript
+}