On 4/16/06, <b class="gmail_sendername">Michael T. Dean</b> <<a href="mailto:mtdean@thirdcontact.com">mtdean@thirdcontact.com</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 04/16/2006 09:02 PM, Chris Everest wrote:<br>> Is this a bug/errata?<br><br>No. MythTV programs (mythtv-setup, mythbackend, mythfrontend) will use<br>$HOME/.mythtv for the configuration directory. So, if you run<br>
mythtv-setup as the root user, it makes $HOME/.mythtv/mysql.txt (<br>/root/.mythtv/mysql.txt ). Then, if you attempt to start the service,<br>which runs mythbackend as mythtv (as it should), it looks for mysql.txt<br>in $HOME/.mythtv/mysql.txt (which, for it, is
<br>/home/mythtv/.mythtv/mysql.txt).</blockquote><div><br>I tried adding this manually, but my automagically created mythtv user has a home directory of /var/lib/mythtv. So you see my point?<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Actually, Myth programs look in all of the following locations, in the<br>order shown, for mysql.txt:<br><br> - <install prefix>/share/mythtv<br> - <install prefix>/etc/mythtv<br> - The directory specified by the environment variable MYTHCONFDIR or
<br>$HOME/.mythtv (it won't check $HOME/.mythtv if MYTHCONFDIR is specified)<br> - the current working directory<br><br>So if the service is trying to use /var/lib/mythtv/mysql.txt, you'll<br>have to read the service start script to figure out what /it/ is doing.
<br><br>Mike<br><br></blockquote></div>Thanks, Mike. It looks like MYTHCONFDIR may be defined somewhere. I'll spit it out in an echo through the init script to check. I have tried defining the mysql.txt correctly in every path that you specified above. Except it is defaulting to /.mythtv/mysql.txt (not root's home directory). Also, There are no hard coded paths for the conf directory in FC5's service startup scripts. It essentially changes to the mythtv user's home directory (defined in FC5 as /var/lib/mythtv) before launching the mythbackend as a daemon. I would be willing to bet that the service startup script does not correctly grab the executing user's home directory correctly. Instead defaulting to '/'. I'll double back and check into it. Thanks for the sequence of checking events.
<br clear="all"><br><br>P.S. This could be an Atrpms for FC5 thing.<br>-- <br>Chris Everest<br>