View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 18 posts ] 
Go to page Previous  1, 2

Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject:
PostPosted: Sat Sep 20, 2008 11:51 pm 
Offline
Joined: Mon Apr 23, 2007 1:45 pm
Posts: 405
Location: Fargo, ND, USA
Thanks for your help tjc
If I didn't have the code from your post to go on and compare to it would have remained one of those long lost mysteries.

I did find that syslog rotates these files. /var/log/syslog is daily all the rest are weekly.
Code:
> syslogd-listfiles --all
/var/log/mail.warn
/var/log/uucp.log
/var/log/user.log
/var/log/daemon.log
/var/log/messages
/var/log/mythtv/mythfrontend.log
/var/log/debug
/var/log/auth.log
/var/log/mail.err
/var/log/syslog
/var/log/mail.log
/var/log/mythtv/mythbackend.log
/var/log/mail.info
/var/log/kern.log
/var/log/lpr.log

It will be Monday before I get a chance to install anacron and see if it cures my ills.

TVBox

_________________
TVBox
LinHES R8.6.1


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 21, 2008 12:03 pm 
Offline
Joined: Mon Apr 23, 2007 1:45 pm
Posts: 405
Location: Fargo, ND, USA
The Log Bog is gone.
My 5.5 KM Box has now been running 24 hours strait and all logs have rolled over. In a previous post I threw out this question.

Can anyone else confirm this assumption is true.
Using APCI Wakeup = logs not rotating.
Running 24/7 = logs rotating OK.

The wording needs to be modified a bit.

Running periods of less than 24 hours = logs not rotating.
Running 24/7 = logs rotating OK.

TVBox

_________________
TVBox
LinHES R8.6.1


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 22, 2008 1:35 am 
Offline
Joined: Mon Jun 21, 2004 5:28 am
Posts: 700
Location: Germany
TVBox wrote:
Running periods of less than 24 hours = logs not rotating.
Running 24/7 = logs rotating OK.

In general, you are correct.

To get around this issue, I set a daily wakeup in mythwelcome between 9am and 10am. I then set the daily cron jobs to run during this period by changing the entries in /etc/crontab as follows. Notice I have changed the number in the second (hour) column to all be "9":
Code:
25 9    * * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 9    * * 7   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 9    1 * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )

I also have another custom cronjob that does regular maintenance (mythbackup, schedule download, etc.).

I highly recommend a daily wakeup for regular maintenance. Not just for backups... If you don't schedule a recording for a week and the box doesn't wakeup, all the downloaded TV schedules will expire and it will won't wakeup if a regularly scheduled item comes along.

_________________
ASUS AT3N7A-I (Atom 330)
TBS 8922 PCI (DVB-S2)


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ] 
Go to page Previous  1, 2



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 11 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:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu