On 4/16/06, <b class="gmail_sendername">Michael T. Dean</b> &lt;<a href="mailto:mtdean@thirdcontact.com">mtdean@thirdcontact.com</a>&gt; 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>&gt; Is this a bug/errata?<br><br>No.&nbsp;&nbsp;MythTV programs (mythtv-setup, mythbackend, mythfrontend) will use<br>$HOME/.mythtv for the configuration directory.&nbsp;&nbsp;So, if you run<br>
mythtv-setup as the root user, it makes $HOME/.mythtv/mysql.txt (<br>/root/.mythtv/mysql.txt ).&nbsp;&nbsp;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>&nbsp;&nbsp;&nbsp;&nbsp;- &lt;install prefix&gt;/share/mythtv<br>&nbsp;&nbsp;&nbsp;&nbsp;- &lt;install prefix&gt;/etc/mythtv<br>&nbsp;&nbsp;&nbsp;&nbsp;- The directory specified by the environment variable MYTHCONFDIR or
<br>$HOME/.mythtv (it won't check $HOME/.mythtv if MYTHCONFDIR is specified)<br>&nbsp;&nbsp;&nbsp;&nbsp;- 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.&nbsp; It looks like MYTHCONFDIR may be defined somewhere.&nbsp; I'll spit it out in an echo through the init script to check.&nbsp; I have tried defining the mysql.txt correctly in every path that you specified above.&nbsp; Except it is defaulting to /.mythtv/mysql.txt (not root's home directory).&nbsp; Also, There are no hard coded paths for the conf directory in FC5's service startup scripts.&nbsp; It essentially changes to the mythtv user's home directory (defined in FC5 as /var/lib/mythtv) before launching the mythbackend as a daemon.&nbsp; I would be willing to bet that the service startup script does not correctly grab the executing user's home directory correctly.&nbsp; Instead defaulting to '/'.&nbsp; I'll double back and check into it.&nbsp; Thanks for the sequence of checking events.
<br clear="all"><br><br>P.S.&nbsp; This could be an Atrpms for FC5 thing.<br>-- <br>Chris Everest<br>