[mythtv-users] Possible Errata/Bug Myth
Michael T. Dean
mtdean at thirdcontact.com
Mon Apr 17 03:45:30 UTC 2006
On 04/16/2006 09:02 PM, Chris Everest wrote:
> Today I realized the mythtv-setup program was using
> /root/.mythtv/mysql.txt for backend configuration while the Fedora
> service interface was using /.mythtv/mysql.txt. Yes, that is right!
> It was created in the root dorectory. This caused the mysql.txt file
> to be created (if not already present) with the default value of
> localhost as the master backend hostname.
>
> Is this a bug/errata?
No. MythTV programs (mythtv-setup, mythbackend, mythfrontend) will use
$HOME/.mythtv for the configuration directory. So, if you run
mythtv-setup as the root user, it makes $HOME/.mythtv/mysql.txt (
/root/.mythtv/mysql.txt ). Then, if you attempt to start the service,
which runs mythbackend as mythtv (as it should), it looks for mysql.txt
in $HOME/.mythtv/mysql.txt (which, for it, is
/home/mythtv/.mythtv/mysql.txt).
> I tried the same exact installation on both i686 and x86_64 with the
> same results. The only difference on the slave and the master
> installs is that I did not create a mythtv user before the
> mythtv-suite was installed. I suspect that the installation on the
> slave without a user already created, built the mythtv user as a 'no
> login and no rights' kind of user and it's profile and path were
> junked. As soon as I edited the /.mythtv/mysql.text to the correct
> master backend hostname the service and chkconfig interfaces worked
> again. Now this is not the correct place for the config to be
> placed. Can anyone tell how to move that config to
> /var/lib/mythtv/mysql.txt so that the service interface uses it corectly?
Actually, Myth programs look in all of the following locations, in the
order shown, for mysql.txt:
- <install prefix>/share/mythtv
- <install prefix>/etc/mythtv
- The directory specified by the environment variable MYTHCONFDIR or
$HOME/.mythtv (it won't check $HOME/.mythtv if MYTHCONFDIR is specified)
- the current working directory
So if the service is trying to use /var/lib/mythtv/mysql.txt, you'll
have to read the service start script to figure out what /it/ is doing.
Mike
More information about the mythtv-users
mailing list