[mythtv-users] Two frontend instances on one box
Lance Tost
ltost at pobox.com
Tue Jan 6 12:31:04 EST 2004
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
(http://lists.netfilter.org/pipermail/netfilter/2003-July/045299.html).
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).
--
Lance Tost <ltost at pobox.com>
More information about the mythtv-users
mailing list