[mythtv-users] Setting MYTHCONFDIR

Michael T. Dean mtdean at thirdcontact.com
Sun Apr 13 02:23:17 UTC 2008


On 04/12/2008 10:13 PM, Phill Edwards wrote:
> I run mythfilldatabase from a daily cron job which picks up the listings
> from a xmltv file prepared earlier. When I run this as mythtv from the
> command line it works fine. But when it's run from the cron job I get these
> errors:
>     2008-04-05 14:25:32.211 Bypassing grabbers, reading directly from file
>     2008-04-05 14:25:32.212 Using runtime prefix = /usr, libdir = /usr/lib
>     2008-04-05 14:25:32.212 Cannot locate your home directory. Please set
> the
>     +environment variable HOME or MYTHCONFDIR
>     2008-04-05 14:25:32.212 Failed to init MythContext, exiting.
>
> I put this line in /etc/sysconfig/mythbackend but it's obviously not what's
> needed because the problem still occurs:
>     MYTHCONFDIR=/home/mythtv/.mythtv
>
> Can anyone advise what I need to do to fix this? It says to set HOME or
> MYTHCONFDIR, but where do I set it and what do I set it to?

export HOME=/home/mythtv

in scripts, and/or something like

HOME=/home/mythtv

in your crontab.

Mike


More information about the mythtv-users mailing list