Moderator Control Panel ]

TBS "After" service names..

TBS "After" service names..

Postby diyhouse » Thu Sep 29, 2016 10:45 pm

Hi Everyone,.. I have just upgraded to mythbuntu 16.04,.. and everything works fine, other than I have to do a myth-backend restart when booting has finished because the TBS tuner cards were not ready soon enough,....

I see in the myth-backend service stuff there are statements that can pause execution until complete,.. eg After=mysqld.service network.target

so a system waits for mysql and networking to start,...

So,... is there an equivalent command to wait for the TBS driver to complete,.... before progressing to start myth-backend

eg After=TBS-Drivers,.. or something,.. can anyone help me here

Many thanks

Rgds
diyhouse
 
Posts: 16
Joined: Mon Jan 20, 2014 8:37 pm

Re: TBS "After" service names..

Postby diyhouse » Fri Sep 30, 2016 1:46 am

Well I have found that

After=dev-dvb-adapter0-frontend0

is accepted within the myth-backend startup,... but this I feel is not the complete answer.... as the backend still needs a restart...

Maybe need something that notifies when all the drivers have been successfully loaded..
or maybe an After stanza for each tuner..

Can anyone help???
diyhouse
 
Posts: 16
Joined: Mon Jan 20, 2014 8:37 pm

Re: TBS "After" service names..

Postby diyhouse » Fri Sep 30, 2016 3:56 pm

well tried the following stanza's...

and although not rejected on syntax etc.,... they did not stop the backend starting too soon

After=dev-dvb-adapter0-frontend0.device
After=dev-dvb-adapter1-frontend0.device
After=dev-dvb-adapter2-frontend0.device
After=dev-dvb-adapter3-frontend0.device
After=dev-dvb-adapter4-frontend0.device
After=dev-dvb-adapter5-frontend0.device

Back to the drawing board....
diyhouse
 
Posts: 16
Joined: Mon Jan 20, 2014 8:37 pm

Re: TBS "After" service names..

Postby diyhouse » Mon Oct 03, 2016 11:44 pm

I found the answer here:-

1st edit the udev/rules.d 99-... file with the following,....

#
# Create systemd device units for capture devices
#
SUBSYSTEM=="video4linux", TAG+="systemd"
SUBSYSTEM=="dvb", TAG+="systemd"


https://forum.mythtv.org/viewtopic.php? ... 8&start=15

The reason it did not work initially for me,.. is that it is a two step process...

the /lib/systemd/system/myth......service file needs

[Unit]
Description=MythTV backend service
Wants=mysql.service dev-dvb-adapter0-frontend0.device dev-dvb-adapter1-frontend0.device dev-dvb-adapter2-frontend0.device
Wants=mysql.service dev-dvb-adapter3-frontend0.device dev-dvb-adapter4-frontend0.device dev-dvb-adapter5-frontend0.device
After=mysql.service dev-dvb-adapter0-frontend0.device dev-dvb-adapter1-frontend0.device dev-dvb-adapter2-frontend0.device
After=mysql.service dev-dvb-adapter3-frontend0.device dev-dvb-adapter4-frontend0.device dev-dvb-adapter5-frontend0.device


Adding,.. then the file saving to /etc/systemd/system/myth.......service
NB the lib and etc difference....
diyhouse
 
Posts: 16
Joined: Mon Jan 20, 2014 8:37 pm


Return to Linux

Who is online

Users browsing this forum: No registered users and 1 guest

cron