[mythtv-users] from PCI to network tuners
Bill Meek
keemllib at gmail.com
Fri Jan 28 01:38:20 UTC 2022
On 1/27/22 18:44, Daryl McDonald wrote:
> I want to know how to "elegantly" configure Myth BE starting after the HDHRs are up. They will both get power (according to recording schedule)
> at the same time, but BackEnd is quicker than the tuners, so bound to fail.
There are lots of script around. The following will actually test
that the HDHR is available (a step more than a ping, which is OK
too). Assumes using systemd. Assumes $USER belongs to group mythtv.
Install this in: /usr/local/bin/hdhomerun_check.py:
https://pastebin.com/R2g0e8UG
make it executable, owner/group root
Create an override for the backend service:
sudo --login systemctl edit mythtv-backend.service
Add or adjust the override file to include:
[Service]
ExecStartPre=/usr/local/bin/hdhomerun_check.py
Create the log file:
sudo touch /var/log/mythtv/hdhr_discovery.log
sudo chown mythtv:mythtv /var/log/mythtv/hdhr_discovery.log
sudo chmod 664 /var/log/mythtv/hdhr_discovery.log
Check your work:
systemctl cat mythtv-backend.service
/usr/local/bin/hdhomerun_check.py
cat /var/log/mythtv/hdhr_discovery.log
Stop and restart the backend. Check the log file above again. Or,
look at the journal for errors.
--
Bill
More information about the mythtv-users
mailing list