
mtdean at thirdcontact
Aug 25, 2009, 7:34 PM
Post #4 of 6
(648 views)
Permalink
|
|
Re: Configuring a slave server with additional tuners [SOLVED]
[In reply to]
|
|
On 08/25/2009 10:17 PM, Brad DerManouelian wrote: > On Aug 25, 2009, at 6:57 PM, Jim Stichnoth wrote: >> On Tue, Aug 25, 2009 at 4:11 PM, Eric A. Boney wrote: >>> Thanks again to everyone for the help, but man do we really need to >>> have 4 >>> different locations for such an important configuration file on the >>> backends? Why isn't there just one location for this file and it be >>> updated >>> from the mythtv-setup environment? >> >> Or at the very least, the logs at the default logging level could >> detail which mysql.txt files are being consulted. > > Or get rid of them all and connect via upnp. Only a couple more months > or so until the next version which includes this ability. 0.21-fixes supports $HOME/.mythtv/config.xml , which is the file that specifies information that can be used to automatically discover the master backend using UPnP; however, it does not require autodiscovery/UPnP connections. Therefore, your advice (get rid of all mysql.txt files) applies whether users are on 0.21-fixes or trunk. The use of mysql.txt was supposed to be deprecated before 0.21 was release and only config.xml is supposed to exist on any machines. And config.xml can /only/ exist in $HOME/.mythtv , so there's no need to say which config.xml is in use. Unfortunately, the config.xml didn't turn out to provide all the benefits it was meant to provide (basically because we had to support legacy apps and scripts) and distros haven't caught up with the change, yet. So, most users have systems that rely on mysql.txt files for configuration. And, most distros like to hide the actual mysql.txt file somewhere where the distro feels config files belong. So, real systems tend to have a ton of them--only one of which is used, the specific one either determined by the default order of precedence for the mysql.txt files specified in MythTV or modified by distro scripts (i.e. that set HOME to allow using a mysql.txt in some "not-normally-a-home" directory). With an "ideal" setup, you'd just have a $HOME/.mythtv/config.xml for every user who runs mythtv applications. If you do remove all mysql.txt files and set up your system with proper config.xml files, it will always work, regardless of how your distro set things up, originally--i.e. even if your distro normally uses mysql.txt files to configure Myth. Therefore, I won't go through the order in which locations are searched to find mysql.txt, as, ideally, you would never use one. (Though if you decide to use mysql.txt, your best bet is /always/ to make every single one of them correct as different ones will be used in different contexts.) Mike "rm mysql.txt and let config.xml sort them out" Dean _______________________________________________ mythtv-users mailing list mythtv-users [at] mythtv http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
|