For most distros, save the configuration file to /etc/logrotate.d/mythtv
Log rotation with --logpath logging
This configuration will work with MythTV logging for all MythTV applications using either the --logpath or --syslog argument. If using this configuration, other MythTV logrotate configuration files are unnecessary.
name=logrotate - all applications
author=Beirdo
webpage=none
short=logrotate configuration for MythTV applications
long=Example configuration file for using logrotate to rotate your MythTV log files
file=none
category=Log Rotation Configuration Files
supports=S21:unset,S22:unset,S23:unset,S231:unset,S24:unset,S241:unset,S25:unset,S251:unset,S252:unset,S26:yes,S27:unset,S28:unset,S29:unset,S30:unset,S31:unset,S32:unset,S33:unset,S34:unset
Author |
Beirdo
|
Description |
Example configuration file for using logrotate to rotate your MythTV log files
|
Supports |
|
/etc/logrotate.d/mythtv
/var/log/mythtv/*.log {
weekly
rotate 8
missingok
ifempty
nocreate
nocompress
sharedscripts
olddir /var/log/mythtv/old
lastaction
killall -HUP mythlogserver
find /var/log/mythtv/old -type f -mtime +30 -delete
endscript
}
name=logrotate - all applications
author=Beirdo
webpage=none
short=logrotate configuration for MythTV applications (v0.25)
long=Example configuration file for using logrotate to rotate your MythTV log files (for v0.25).
file=none
category=Log Rotation Configuration Files
supports=S21:unset,S22:unset,S23:unset,S231:unset,S24:unset,S241:unset,S25:yes,S251:unset,S252:unset,S26:unset,S27:unset,S28:unset,S29:unset,S30:unset,S31:unset,S32:unset,S33:unset,S34:unset
Author |
Beirdo
|
Description |
Example configuration file for using logrotate to rotate your MythTV log files (for v0.25).
|
Supports |
|
/etc/logrotate.d/mythtv
/var/log/mythtv/*.log {
weekly
rotate 8
missingok
ifempty
nocreate
nocompress
sharedscripts
olddir /var/log/mythtv/old
lastaction
killall -HUP mythbackend
killall -HUP mythfrontend
killall -HUP mythlcdserver
find /var/log/mythtv/old -type f -mtime +30 -delete
endscript
}