Page 1 of 1

I want mumudvb runs when MOI starts

PostPosted: Fri Jul 07, 2017 12:13 pm
by cyclone27
Hello,
Is it possible that mumudvb runs when MOI starts and runs these lines to start tuners :
mumudvb -d -c /etc/mumudvb/card0.conf
mumudvb -d -c /etc/mumudvb/card1.conf
mumudvb -d -c /etc/mumudvb/card2.conf
mumudvb -d -c /etc/mumudvb/card3.conf
mumudvb -d -c /etc/mumudvb/card4.conf
mumudvb -d -c /etc/mumudvb/card5.conf
mumudvb -d -c /etc/mumudvb/card6.conf
mumudvb -d -c /etc/mumudvb/card7.conf
Thanks for help

Re: I want mumudvb runs when MOI starts

PostPosted: Fri Jul 07, 2017 4:04 pm
by steven
Hi

You can put these command to
/usr/bin/lcd.sh
it will auto run the command when start

Thanks

Kind Regards

steven

Re: I want mumudvb runs when MOI starts

PostPosted: Fri Jul 07, 2017 11:29 pm
by cyclone27
Hello,
I put the 8 lines before the word "Done" at the end of the script.
After reboot, only card number one has started. The 7 ohters cards do not start.
Thanks for help

Re: I want mumudvb runs when MOI starts

PostPosted: Mon Jul 10, 2017 10:11 am
by steven
Hi

Please add like this :
mumudvb -d -c /etc/mumudvb/card0.conf &
mumudvb -d -c /etc/mumudvb/card1.conf &
...


Thanks

Kind Regards

steven

Re: I want mumudvb runs when MOI starts

PostPosted: Mon Jul 10, 2017 10:32 pm
by cyclone27
Hi,
Thanks for your advise. I will try on my MOI.
On Ubuntu 14.04 LTS server, can i i add these lines too into rclocal file ?
Regards

Re: I want mumudvb runs when MOI starts

PostPosted: Tue Jul 11, 2017 11:56 am
by steven
Hi

For ubuntu 14.04 maybe you can manual create systemd service :

1.create a server in /lib/systemd/system/tvheadend.service
[Unit]
Description=TV streaming server
After=syslog.target

[Service]
ExecStart=/usr/bin/tvheadend -C -u root -g root -s
KillMode=process
Restart=always

[Install]
WantedBy=multi-user.target

2.create link to multi-user.target.wants folder
ln -s /lib/systemd/system/tvheadend.service /lib/systemd/system/multi-user.target.wants

Thanks

Kind Regards

steven

Re: I want mumudvb runs when MOI starts

PostPosted: Wed Jul 12, 2017 8:21 am
by cyclone27
Hi,
My last question for Ubuntu 14.04 LTS was for Mumudvb. You answered me for Tvheadend. I do not use Tvheadend.
Best regards :-)

Re: I want mumudvb runs when MOI starts

PostPosted: Mon Jul 17, 2017 11:17 am
by steven
Hi

Just need to change the name
ExecStart=/usr/bin/tvheadend -C -u root -g root -s

change /usr/bin/tvheadend -C -u root -g root -s

to a sh file such ash mumudvb.sh
and put all mumudvb command to mumudvb.sh

ExecStart=/usr/bin/mumudvb.sh

Thanks

Kind Regards

steven