[mythtv-users] Auto-shutdown and EPG data

Johannes Niess linux at johannes-niess.de
Sun Mar 28 04:42:58 EST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Samstag, 27. März 2004 15:58 schrieb Henk Poley:
> Op zaterdag 27 maart 2004 15:44, schreef Timo Boettcher:
> > Hi Henk,
> >
> > * Henk Poley <hpoley at dds.nl>, Saturday, March 27, 2004, 2:55:22 PM:
> > > I've ran MythTV with automatic shutdown (after all frontends are
> > > disconnected and nothing is recording) for some time noe. But I
> > > always updated the EPG by hand. Setting a cron job wouldn't really
> > > help since you don't know is the machine will be on by then. Now I
> > > figured that others will have the same problem, so have have you
> > > solved it?
> >
> > IIRC Redhat had a special crondaemon named anacron (asyncronous cron)
> > which was able to find out when a cron-job was last executed and would
> > then execute it again if it was overdue. It looks like the
> > vcron/vixie-cron (as installed by gentoo) can do it as well, but I
> > didn't try.
> > OTOH, you can write a small script that does something like that:
> > <snip>
>
> Hmm, I figured that yes, but as far as I can tell the HD access of the
> grabber and database-insertion can interfere with the recording. As since
> vixie-cron (yes, running Gentoo) will most likely schedule it somewhere
> after boottime.

Using "batch" should improve the situation. It starts jobs only if the load is 
below a limit. due to the threaded nature of mythtv I get loads of about 2 
and CPU usage of 40% (P4 2.4 GHz, full PAL, bttv card). "batch" needs a load 
< 0.8 by default to run the script. As "batch" comes with "atd" it should be 
on your box.

It will not detect recordings that start during mythfilldatabase.

HTH,

Johannes Niess
 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFAZp4uZ86b9aw2E+0RApoIAJwNrXQQOL1i81DpnYBQ8iyuemqLGgCdFXip
BeCla2ysUKCvuCK3i3pjECU=
=MrsY
-----END PGP SIGNATURE-----


More information about the mythtv-users mailing list