[mythtv-users] mythfilldatabase

Russell Gower mythtv at thegowers.me.uk
Tue Nov 1 16:34:23 UTC 2011

On 1 Nov 2011, at 16:05, Raymond Wagner wrote:

> On 11/1/2011 11:36, Russell Gower wrote:
>> Thanks, but the problem is that it works when run from the command 
>> line, but not when run from mythbackend.
> That doesn't make any sense at all.  When mythbackend runs 
> mythfilldatabase as a child process, it gets the same environment as 
> mythbackend, meaning home directory and MYTHCONFDIR will be the same.  
> Are you sure mythfilldatabase is being run by the backend, and not some 
> cron process with a different environment?
> _______________________________________________

Quite sure yes, the only thing I've spotted and what I wanted to test is that the init script for mythbackend defines MYTHCONFDIR, which isn't defined if I run mythfilldatabase from the command line.

So when run from the command line I get the following in the log
	2011-11-01 16:23:33.038 Using runtime prefix = /usr
	2011-11-01 16:23:33.038 Using configuration directory = /var/lib/mythtv/.mythtv
	2011-11-01 16:23:34.381 XMLTV config file is: /var/lib/mythtv/.mythtv/Freeview.xmltv

but when run from mythbackend I get
	2011-11-01 02:32:42.162 Using runtime prefix = /usr 
	2011-11-01 02:32:42.195 Read conf dir = /var/lib/mythtv 
	2011-11-01 02:32:42.195 Using configuration directory = /var/lib/mythtv 
	2011-11-01 02:32:48.495 XMLTV config file is: /var/lib/mythtv/Freeview.xmltv
	Using old-style config file
	config file /var/lib/mythtv/Freeview.xmltv does not exist, run me with --configure

More information about the mythtv-users mailing list