<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:monospace,monospace"><span style="font-family:Arial,Helvetica,sans-serif">On Sat, Jul 20, 2019 at 3:12 AM Stephen Worthington <<a href="mailto:stephen_agent@jsw.gen.nz">stephen_agent@jsw.gen.nz</a>> wrote:</span><br></div></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">On Fri, 19 Jul 2019 20:33:13 +0200, you wrote:<br>
<br>
>On Fri, Jul 19 2019 at 13:54 -04, David Hampton wrote:<br>
>> On Fri, 2019-07-19 at 18:34 +0200, Janusz S. Bie? wrote:<br>
>>> On Fri, Jul 19 2019 at 11:59 -04, Jay Harbeston wrote:<br>
><br>
>[...]<br>
><br>
>>> If ps says the truth, there is only one backend running:<br>
>>> <br>
>>> --8<---------------cut here---------------start------------->8---<br>
>>> ps ax | grep mythbackend<br>
>>>  1295 ?        Ssl    3:04 /usr/bin/mythbackend --logpath<br>
>>> /var/log/mythtv --logl<br>
>>>  8222 pts/1    S+     0:00 grep mythbackend<br>
>>>  --8<---------------cut here---------------end--------------->8---<br>
>>> <br>
>>> If nmap says the truth, the port 6543 is open and assigned to mythtv<br>
>>> service:<br>
>>> <br>
>>> --8<---------------cut here---------------start------------->8---<br>
>>> nmap -p 6543 0.0.0.0<br>
>>> Starting Nmap 7.70 ( <a href="https://nmap.org" rel="noreferrer" target="_blank">https://nmap.org</a> ) at 2019-07-19 18:21 CEST<br>
>>> Nmap scan report for 0.0.0.0<br>
>>> Host is up (0.00013s latency).<br>
>>> <br>
>>> PORT     STATE SERVICE<br>
>>> 6543/tcp open  mythtv<br>
>>> --8<---------------cut here---------------end--------------->8---<br>
>>> <br>
>>> If the message<br>
>>> <br>
>>> <a href="http://0.0.0.0:6543" rel="noreferrer" target="_blank">0.0.0.0:6543</a> - ERROR 8: THE BOUND ADDRESS IS ALREADY IN USE<br>
>>> <br>
>>> is the true, then some other mythtv service (is there any?) is using<br>
>>> it...<br>
>><br>
>> Try the command: sudo netstat -tapn | grep 6543<br>
><br>
>Thanks, I was not familiar with this invocation.<br>
><br>
><br>
>> That will tell you what process pid/name has the port open.<br>
><br>
>--8<---------------cut here---------------start------------->8---<br>
> netstat -tapn | grep 6543<br>
><br>
>tcp        0      0 <a href="http://0.0.0.0:6543" rel="noreferrer" target="_blank">0.0.0.0:6543</a>            0.0.0.0:*               LISTEN      1295/mythbackend    <br>
>tcp6       0      0 :::6543                 :::*                    LISTEN      1295/mythbackend    <br>
><br>
>ps ax | grep mythbackend<br>
> 1295 ?        Ssl    6:33 /usr/bin/mythbackend --logpath /var/log/mythtv --loglevel crit<br>
>13947 pts/1    S+     0:00 grep mythbackend<br>
>--8<---------------cut here---------------end--------------->8---<br>
><br>
>I just realized that I have both mythbackend and mythtv-backend and my system<br>
>toggles between mythbackend and mythtv-backend in a semi-random way<br>
>without my intervention. The change can be causes e.g. by some package<br>
>update or reboot.<br>
><br>
>When mythbackend is running then WebFrontend seems to work.<br>
><br>
>Looks like mythbackend is started by systemd, and mythtv-backend by<br>
>init. Now the question is how to get rid of mythtv-backend.<br>
><br>
>Best regards<br>
><br>
>Janusz<br>
<br>
You can either disable the /etc/init.d script, or you can rename your<br>
mythbackend.service file to mythtv-backend.service, in which case<br>
systemd will ignore the init script in favour of the proper systemd<br>
unit.  To disable the init script, I think this is the right way to do<br>
it:<br>
<br>
update-rc.d mythtv-backend disable<br><br></blockquote><div><span class="gmail_default" style="font-family:monospace,monospace">His current systemd unit for mythtv-backend calls the init script as it's start=</span></div><div><span class="gmail_default" style="font-family:monospace,monospace"></span> </div></div></div>