[mythtv-users] delaying backend startup until the network is up

Jan Ceuleers jan.ceuleers at gmail.com
Tue Dec 18 15:43:35 UTC 2018


On 17/12/2018 22:31, James Abernathy wrote:
> "full-internet.service"
> 
> Description=Wait for full internet service to be available including DNS
> After=NetworkManager-wait-online.service
> 
> [Service]
> Type=simple
> ExecStartPre=/home/jim/delay-backend-till-network-up.py
> ExecStart=/bin/true
> 
> [Install]
> WantedBy=multi-user.target

If there are ever any problems with your network configuration you won't
be able to log in to fix them. Not even on the console - there will
simply not be a login prompt.

Same problem is caused by the mythtv-backend.service file: if there is a
problem of any kind (e.g. with a tuner that's been added to After= and
Wants= lines) then the system doesn't complete booting and you can't log
in to troubleshoot. Truly horrendous design.

I would like multi-user.target to be reached ASAP and with as few
dependencies as possible. It can take 3 minutes for all of my pvrusb2
tuners to be initialised, and I don't want to wait for them to be able
to log in.

Thx, Jan


More information about the mythtv-users mailing list