View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 9 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Tue Sep 25, 2007 9:31 am 
Offline
Joined: Thu Apr 20, 2006 10:31 pm
Posts: 17
Version is R5C7.

Is this possible?

Right now if I schedule a recording I have to enter it every 2 weeks.
I would like to have the schedule to go until I delete it.
I have tried setting a recording daily and weekly and they both stop after 2 weeks.

I could not find anything in the Wiki's or the forum that mentions this. Although I may not be searching for the correct phrase. :(

_________________
Bitwise Chat "Kwatt"


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 25, 2007 10:55 am 
Offline
Joined: Sun Jun 12, 2005 10:55 pm
Posts: 3161
Location: Warwick, RI
Hi,

Two options, every ~13 days reboot or try stop / restart the backend (weekly is ok also). Your manual record schedule should keep being refreshed.

I have an A16 box that has been doing the reboot weekly for around two years on the original manual record schedule. :)

Mike


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 25, 2007 3:23 pm 
Offline
Joined: Thu Apr 20, 2006 10:31 pm
Posts: 17
Thank you!

Mike

A reboot every "Sunday at 03:01" and no log will do nicely. :D

Code:
1 3 * * 0 /sbin/reboot > /dev/null

_________________
Bitwise Chat "Kwatt"


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 25, 2007 5:27 pm 
Offline
Joined: Thu Mar 02, 2006 5:42 pm
Posts: 410
Location: middleton wi usa atsc
Quote:
A reboot every "Sunday at 03:01" and no log will do nicely. Very Happy

Code:
1 3 * * 0 /sbin/reboot > /dev/null
Hi Mythin1, What file did you put this code in?
Thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 25, 2007 5:43 pm 
Offline
Joined: Sun Jun 12, 2005 10:55 pm
Posts: 3161
Location: Warwick, RI
Hi,

With R5C7 try the stop start of the mythbackend first, that seems to reload the manual schedule also and doesn't take as long.

You could make a simple script with a sleep of a couple seconds between start / stop then call the script from the root crontab.

Also there was on tweak required to R5C7 or over a period of months you will get a / partition full. Has to do with a roll over of a mysql log. It is a simple delete a script but I don't recall exactly which one other wise R5C7 is like a rock.

Mike


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 25, 2007 5:50 pm 
Offline
Joined: Sun Sep 25, 2005 3:50 pm
Posts: 1013
Location: Los Angeles
Why not set up the root crontab to do a mythbackup every day or week? This will stop and start the backend plus give the added bonus of having a backup that you can restore from in /myth/backup.

Code:
# crontab -e

Here's my root crontab that runs at 5am each day:

Quote:
00 05 * * * /usr/local/bin/mythbackup >>/var/log/mythtv/mythbackup.log 2>&1

_________________
Mike
My Hardware Profile


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 25, 2007 7:26 pm 
Offline
Joined: Thu Apr 20, 2006 10:31 pm
Posts: 17
jzigmyth wrote:
Quote:
A reboot every "Sunday at 03:01" and no log will do nicely. Very Happy

Code:
1 3 * * 0 /sbin/reboot > /dev/null
Hi Mythin1, What file did you put this code in?
Thanks!


You can use the Webmin to schedule the job or

Code:
 crontab -e 

then
Code:
1 3 * * 0 /sbin/reboot > /dev/null


mjl wrote:

Quote:
Hi,

With R5C7 try the stop start of the mythbackend first, that seems to reload the manual schedule also and doesn't take as long.

You could make a simple script with a sleep of a couple seconds between start / stop then call the script from the root crontab.

Also there was on tweak required to R5C7 or over a period of months you will get a / partition full. Has to do with a roll over of a mysql log. It is a simple delete a script but I don't recall exactly which one other wise R5C7 is like a rock.



I would not be willing to bet that " I " could make any script no matter how simple that could be depended on. :wink:

I remember taking care of the "/ partition full" awhile ago.
And I can't remember exactly how I did it though...

R5C7 works and works well. It does what I need and I don't like fixing things that are not broken. That attitude may come back and bite me one day. When I find something I like I stick with it till the bitter end.



mihanson wrote:

Quote:
Why not set up the root crontab to do a mythbackup every day or week? This will stop and start the backend plus give the added bonus of having a backup that you can restore from in /myth/backup.

Code:
# crontab -e

Here's my root crontab that runs at 5am each day:

Quote:
00 05 * * * /usr/local/bin/mythbackup >>/var/log/mythtv/mythbackup.log 2>&1



I like this also.

Thanks for the ideas.

:)

_________________
Bitwise Chat "Kwatt"


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 25, 2007 8:11 pm 
Offline
Joined: Sun Jun 12, 2005 10:55 pm
Posts: 3161
Location: Warwick, RI
Hi,

Ya, I like R5C7 also :)
A simple script would look something like:
(need to be root so would be a good place for your script)
nano -w /root/be-recycle.sh
Code:
#!/bin/sh
#
/etc/init.d/mythtv-backend stop
sleep 2
/etc/init.d/mythtv-backend start
#done


and then follow mihanson's tip

Code:
crontab -e

then
Code:
1 3 * * 0 /root/be-recycle.sh > /dev/null

The backup idea is cool also, and you get two birds!

Figured you may have already done the one and only required tweak, but best to at least mention it.

Good luck
Mike


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 26, 2007 3:35 am 
Offline
Joined: Thu Apr 20, 2006 10:31 pm
Posts: 17
mjl wrote:
Hi,

Ya, I like R5C7 also :)
A simple script would look something like:
(need to be root so would be a good place for your script)
nano -w /root/be-recycle.sh
Code:
#!/bin/sh
#
/etc/init.d/mythtv-backend stop
sleep 2
/etc/init.d/mythtv-backend start
#done


and then follow mihanson's tip

Code:
crontab -e

then
Code:
1 3 * * 0 /root/be-recycle.sh > /dev/null

The backup idea is cool also, and you get two birds!

Figured you may have already done the one and only required tweak, but best to at least mention it.

Good luck
Mike



The more choices the better!

Thanks

Greg

_________________
Bitwise Chat "Kwatt"


Top
 Profile  
 

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


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 58 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