View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 4 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Sat Apr 03, 2004 8:50 am 
Offline
Joined: Sun Feb 15, 2004 9:08 pm
Posts: 12
This is using R4V2.

I've found that the backend stops logging messages after a day and I'm wondering if its related to rotating and perhaps compressing the log files. I looked at the code in main.cpp for mythtv and it opens the log file and then dups the file handle for stdout and stderr. It doesn't look like it opens and closes the log file every time it wants to write out a message. I think that this style of writing to a log file is incompatable with rotating the files.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 03, 2004 9:06 am 
Offline
Joined: Mon Oct 06, 2003 10:38 am
Posts: 4978
Location: Nashville, TN
you hypothosys sounds solid. You should really post this over on the mythtv mailing list. Even if someone here wanted to fix this behavior we would still have to submit the patches back to the mythtv project.


Top
 Profile  
 
PostPosted: Sat Apr 03, 2004 9:10 am 
Offline
Joined: Sun Feb 15, 2004 9:08 pm
Posts: 12
I can post this to the mythtv list as well. I posted it here because its the KnoppMyth distro which sets up the myth-backend file in /etc/logrotate.d and perhaps it shouldn't.

[On an unrelated note, perhaps it should set up a file to rotate the mythfilldatabase.log files]


Top
 Profile  
 
PostPosted: Sat Apr 03, 2004 8:37 pm 
Offline
Joined: Sun Feb 15, 2004 9:08 pm
Posts: 12
Someone on the mythtv-dev list kindly pointed out that the "copytruncate" option in the /etc/logrotate.d/mythtv-backend file is the correct way to deal with this situation.

Its pretty self-describing but here's a link which talks about what it does http://kavlon.org/index.php/logrotate


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu