[mythtv-users] recording doesn't end

Udo van den Heuvel udovdh at xs4all.nl
Thu Mar 8 17:45:46 UTC 2007


Michael T. Dean wrote:
> On 03/08/2007 10:07 AM, Udo van den Heuvel wrote:
>> Also mythbackend.log is empty since archiving the log.
>> Does MythTV notice the log being archived? (it is strange to see no
>> output at all).
> 
> Are you sending a SIGHUP?  If not, mythbackend continues writing to the 
> already deleted log file.

logrotate's conf did not do that. Who does the config file for
mythbackend for logrotate?

I now made it to be:

# cat mythbackend
/var/log/mythtv/mythbackend.log {
    notifempty
    missingok
    compress
    compresscmd /usr/bin/bzip2
    uncompresscmd /usr/bin/bunzip2
    compressext .bz2
    weekly
    rotate 4
    size 10M
 postrotate
        /bin/kill -HUP `cat /var/run/mythbackend.pid 2> /dev/null` 2>
/dev/null || true
 endscript
}



More information about the mythtv-users mailing list