Difference between revisions of "Logrotate - all applications"
From MythTV Official Wiki
m (MythTV is not a program name--proper capitalization :)) |
m (add 0.25 support token) |
||
Line 9: | Line 9: | ||
|long=Example configuration file for using logrotate to rotate your MythTV log files. | |long=Example configuration file for using logrotate to rotate your MythTV log files. | ||
|category=Log Rotation Configuration Files | |category=Log Rotation Configuration Files | ||
− | |name=logrotate - all applications}} | + | |name=logrotate - all applications |
+ | |S25=yes}} | ||
{{Code box|/etc/logrotate.d/mythtv| | {{Code box|/etc/logrotate.d/mythtv| | ||
<pre> | <pre> |
Revision as of 20:58, 17 May 2012
For most distros, save the configuration file to /etc/logrotate.d/mythtv
Log rotation with --logpath logging
This configuration will work with MythTV logging using either the --logpath or --syslog argument.
Author | unknown |
Description | Example configuration file for using logrotate to rotate your MythTV log files. |
Supports |
/var/log/mythtv/*.log { weekly rotate 8 missingok ifempty nocreate nocompress sharedscripts olddir /var/log/mythtv/old postrotate killall -HUP mythbackend killall -HUP mythfrontend killall -HUP mythlcdserver find /var/log/mythtv/old -name 'mythfrontend*' -type f -mtime +30 -delete endscript }