# 
# Example configuration file for using logrotate to rotate your mythbackend log files
# see: https://www.mythtv.org/wiki/Logrotate_-_mythbackend
#

/var/log/mythtv/mythbackend*.log {
        su mythtv video
        weekly
        rotate 8
        missingok
        ifempty
        nocreate
        nocompress
        sharedscripts
        olddir /var/log/mythtv/old
        postrotate
                systemctl kill -q -s HUP --kill-who=main mythbackend.service
                find /var/log/mythtv/old -name 'mythbackend*' -type f -mtime +30 -delete
        endscript
}
