summaryrefslogtreecommitdiff
path: root/multimedia/mythtv/files/mythtv.logrotate.d
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/mythtv/files/mythtv.logrotate.d')
-rw-r--r--multimedia/mythtv/files/mythtv.logrotate.d10
1 files changed, 10 insertions, 0 deletions
diff --git a/multimedia/mythtv/files/mythtv.logrotate.d b/multimedia/mythtv/files/mythtv.logrotate.d
new file mode 100644
index 0000000000..a3024f4208
--- /dev/null
+++ b/multimedia/mythtv/files/mythtv.logrotate.d
@@ -0,0 +1,10 @@
+/var/log/mythbackend.log /var/log/mythfrontend.log {
+rotate 4
+weekly
+notifempty
+sharedscripts
+missingok
+postrotate
+[ -f "/var/run/mythbackend.pid" ] && /bin/kill -HUP `cat /var/run/mythbackend.pid`
+endscript
+}