Moderator Control Panel ]

I want mumudvb runs when MOI starts

I want mumudvb runs when MOI starts

Postby cyclone27 » Fri Jul 07, 2017 12:13 pm

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
cyclone27
 
Posts: 7
Joined: Sat Jul 01, 2017 7:59 am

Re: I want mumudvb runs when MOI starts

Postby steven » Fri Jul 07, 2017 4:04 pm

Hi

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

Thanks

Kind Regards

steven
steven
 
Posts: 2239
Joined: Fri Aug 06, 2010 3:23 pm

Re: I want mumudvb runs when MOI starts

Postby cyclone27 » Fri Jul 07, 2017 11:29 pm

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
cyclone27
 
Posts: 7
Joined: Sat Jul 01, 2017 7:59 am

Re: I want mumudvb runs when MOI starts

Postby steven » Mon Jul 10, 2017 10:11 am

Hi

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


Thanks

Kind Regards

steven
steven
 
Posts: 2239
Joined: Fri Aug 06, 2010 3:23 pm

Re: I want mumudvb runs when MOI starts

Postby cyclone27 » Mon Jul 10, 2017 10:32 pm

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
cyclone27
 
Posts: 7
Joined: Sat Jul 01, 2017 7:59 am

Re: I want mumudvb runs when MOI starts

Postby steven » Tue Jul 11, 2017 11:56 am

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
steven
 
Posts: 2239
Joined: Fri Aug 06, 2010 3:23 pm

Re: I want mumudvb runs when MOI starts

Postby cyclone27 » Wed Jul 12, 2017 8:21 am

Hi,
My last question for Ubuntu 14.04 LTS was for Mumudvb. You answered me for Tvheadend. I do not use Tvheadend.
Best regards :-)
cyclone27
 
Posts: 7
Joined: Sat Jul 01, 2017 7:59 am

Re: I want mumudvb runs when MOI starts

Postby steven » Mon Jul 17, 2017 11:17 am

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
steven
 
Posts: 2239
Joined: Fri Aug 06, 2010 3:23 pm


Return to General discussion

Who is online

Users browsing this forum: No registered users and 2 guests