[mythtv] Rotating mythbackend.log file
hampton at employees.org
Sat Apr 3 14:27:29 EST 2004
On Sat, 2004-04-03 at 07:18, Jeff wrote:
> Would it make any sense to add code to Myth to automatically
> roll the log file once/day?
No, that's reinventing the wheel. IMHO the right solution is to emulate
syslog. Mythbackend should trap the SIGHUP signal and use that as an
indication to close and reopen its logfile. logrotate can than be
configured to send a SIGHUP to myth each time it rotates the log file.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20040403/ccb8b5c3/attachment.pgp
More information about the mythtv-dev