Detect Network Tuner is Powered On

For discussion of topics specific to MythTV on linux
Post Reply
jksj
Senior
Posts: 148
Joined: Thu Feb 13, 2014 7:53 pm
Great Britain

Detect Network Tuner is Powered On

Post by jksj »

I am using a SAT/IP tuner as one of my sources. It works fine but the driver is still under development in MythTV v32 #13121 (Sat>IP client support) – MythTV. At present it does not detect if the box has not been switched on.

The script in this post https://lists.archive.carbon60.com/myth ... 986#625984

posted by Stephen Worthington successfully detects if the device is pingable.

It does this by using a service local-network-pingable.service which is run at startup and which mythbackend.service is dependent on,

The script provides a startup delay that waits for the tuner to start with suitable timeout.

However I want to run a mysql command to disable the tuner so that the system uses another source.

The command itself is trivial :-

update capturecard set recpriority=0,livetvorder=0 where displayname like 'Frs%';

However i am not sure where to call it.

Can I add the code to local-network-pingable.service?

Is it ok to call mysql in a service?

How do I ensure the mysql service is up. Is the following correct?

After=mysqld.service network.target
After=network.target mysql.service
Post Reply