<div dir="ltr"><div dir="ltr">On Wed, Nov 15, 2023 at 8:15 PM Peter Bennett <<a href="mailto:pb.mythtv@gmail.com">pb.mythtv@gmail.com</a>> wrote:</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
On 11/14/23 21:30, John P Poet wrote:<br>
> Hi All,<br>
><br>
> With current master, what is the correct way to set up a slave backend?<br>
><br>
> Are alternate ports supported? If so, what steps are needed? With <br>
> mythbackend starting up for the first time expecting a web connection, <br>
> I assume a "--port" option of some sort would be necessary to get <br>
> mythbackend listening on the correct port, but I don't see anything <br>
> like that as an option, so I assume that is not supported yet.<br>
><br>
> I would like to run multiple instances of mythbackend on the same <br>
> hardware. I have done this in the past with multiple master backends. <br>
> This time I want to do it with a combination of master and slave backends.<br>
><br>
> Thanks,<br>
><br>
> John<br>
><br>
><br>
> _______________________________________________<br>
<br>
Hi John<br>
<br>
If you start mythbackend in a new install with empty database, it will <br>
listen on the default port, 6544 so that you can use the web app to <br>
perform setup. You can then change the backend status port and other <br>
ports as you need. After restarting it will use the new ports if you <br>
changed them.<br>
<br>
To set up a slave backend on the same machine with different ports, you <br>
may have to shut down the master backend that uses default ports while <br>
you do the setup on the slave backend and change its ports. Once changed <br>
you could start both backends.<br>
<br>
Alternatively you may be able to set an override on the port number via <br>
the -O option on myhbackend and the appropriate setting strings for the <br>
settings that hold  the port numbers.<br>
<br>
Some method is needed to give the slave backend a different name, via a <br>
different config.xml. Either it can run under a different user id or it <br>
can use a MYTHCONFDIR environment variable to set a location where the <br>
config.xml will be found.<br>
<br>
For a test setup you can use my scripts that automate the creation of <br>
multiple setups on one machine, at <br>
<a href="https://github.com/MythTV/packaging/tree/master/deb-light#developing-and-testing" rel="noreferrer" target="_blank">https://github.com/MythTV/packaging/tree/master/deb-light#developing-and-testing</a> <br>
<br>
<br>
If there is a missing part in the web app setup,  please  let me know so <br>
I can fix it.<br>
<br>
Peter<br></blockquote><div><br></div><div>Thank you Peter. I didn't want to shut down the running master and had forgotten about the -O option. I should be able to get it all working and will let you know if I run into any issues.</div><div><br></div><div>John <br></div></div></div>