Page 1 of 1

TBS "After" service names..

PostPosted: Thu Sep 29, 2016 10:45 pm
by diyhouse
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

Re: TBS "After" service names..

PostPosted: Fri Sep 30, 2016 1:46 am
by diyhouse
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???

Re: TBS "After" service names..

PostPosted: Fri Sep 30, 2016 3:56 pm
by diyhouse
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....

Re: TBS "After" service names..

PostPosted: Mon Oct 03, 2016 11:44 pm
by diyhouse
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....