[mythtv-users] Two frontend instances on one box

Per Åge Sørvik peraage at leneogperaage.com
Tue Jan 6 13:08:35 EST 2004

Lance Tost wrote:

>On Tue, 6 Jan 2004, Lance Tost wrote:
>>1) Submit a patch for myth to key frontend settings on hostname and userid 
>>(or some other data)
>>2) Look into some way of running each instance in some sort of virtual 
>>host with its own IP.  I don't know if anything like this exists but I'll 
>>look into it.
>Update to my own question.  
>You can use iptables to base your route on userid
>However, the more I thought about it, the more I figured this wouldn't
>help.  I'm guessing mythfrontend picks up the local hostname or something
>and supplies that value to the backend rather than the backend determining
>it based on IP.
>So then it hit me.  /usr/share/mythtv/mysql.txt allows you to set your 
>"LocalHostName".  So now I have a new option.  Figure out how to make each 
>instance of mythfrontend read its own mysql.txt file or script it so that 
>I copy mysql.txt.upstairs to mysql.txt, start mythfrontend for upstairs, 
>then copy mysql.txt.downstairs to mysql.txt and start mythfrontend for 
>downstairs.  There may be some race condition issues here but I'm sure 
>this can be worked out.
>Ahhhh.... stracing mythfrontend starting up and it looks like mythfrontend 
>will keep looking for mysql.txt in various places until finally looking in 
>the current directory.  So my problems should be solved by running each 
>instance of mythfrontend in its own directory with its own mysql.txt in 
>there (and removing /usr/share/mythtv/mysql.txt).
Please keep us updated if you have any luck with this. And if you dont't 
mind, could you post your XF86Config file, or email it tom me ?



More information about the mythtv-users mailing list