commit caf8e517d6358bc161e34098e572dafccd50ec63
Author: Richard Shaw <hobbes1069(a)gmail.com>
Date: Sat Mar 3 07:15:47 2018 -0600
Update logrotate config, fixes RFBZ#4133.
mythtv.logrotate.sysd | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/mythtv.logrotate.sysd b/mythtv.logrotate.sysd
index ee613bd..82244c4 100644
--- a/mythtv.logrotate.sysd
+++ b/mythtv.logrotate.sysd
@@ -35,11 +35,9 @@
compresscmd /usr/bin/bzip2
uncompresscmd /usr/bin/bunzip2
compressext .bz2
- firstaction
+ postrotate
/bin/systemctl kill mythbackend.service --signal=HUP --kill-who=main
2>/dev/null || true
- endscript
- # general cleanup after 4 weeks of anything we might have missed
- lastaction
- find /var/log/mythtv -type f -mtime +28 -delete
+ # general cleanup after 4 weeks of anything we might have missed
+ find /var/log/mythtv -type f -mtime +30 -delete
endscript
}