Project

General

Profile

Tvheadend autostart conf. How?

Added by Arthur S about 9 years ago

Hello everyone!
I have Tvheadend on Ubuntu Server 15.10. I am a beginner in Linux. I need autostart Tvheadend on boot. Could You write a step-by-step to wich file I must to go and how I need to config it? Thank You very much! :)


Replies (7)

RE: Tvheadend autostart conf. How? - Added by Anders Gustafsson about 9 years ago

Does this help?

http://support.sundtek.com/index.php?topic=105.0

But a better documentation for us linux noobs would certainly be helpful. Any takers?

RE: Tvheadend autostart conf. How? - Added by Arthur S about 9 years ago

I read not only here, but I don't understand. I need step by step from zero please.

RE: Tvheadend autostart conf. How? - Added by Dreamcat 4 about 9 years ago

  • You need to 'apt-get install' tvheadend first. As per the download instructions for ubuntu.

http://tvheadend.org/projects/tvheadend/wiki/AptRepository

  • You need to enable the tvheadend system service in Systemd.

Which I'm sorry I can't help you with as I use Docker and not systemd. Here's some resources:

http://www.howtogeek.com/216454/how-to-manage-systemd-services-on-a-linux-system/?PageSpeed=noscript

https://github.com/tvheadend/tvheadend-packaging/blob/master/systemd/tvheadend.service

You will probably find that the tvheadend apt pkg installes that file ^^ `tvheadend.service` in /etc/systemd somewhere. But that i just a guess on my part.

Honestly I much prefer Docker myself. But that would be a steeper learning curve for someone like you who wouldn't really know anything about it yet.

RE: Tvheadend autostart conf. How? - Added by Arthur S about 9 years ago

Needs to write this to terminal: sudo update-rc.d tvheadend defaults and after reboot srvice tvheaden is running.

RE: Tvheadend autostart conf. How? - Added by Dave Travers almost 9 years ago

Any way make this permanent though?
This works fine until tvheadend us updated with apt, then it goes mack to a manual start service.

RE: Tvheadend autostart conf. How? - Added by Arthur S almost 9 years ago

After update Linux server, or Linux desktop You need to start Tvheadend manualy and reenter sudo update-rc.d tvheadend defaults to terminal . It will be work again.

RE: Tvheadend autostart conf. How? - Added by Kristian Rapp almost 9 years ago

I did the following to make tvheadend autostart on Ubuntu 15.10:
sudo vi /etc/systemd/system/multi-user.target.wants/tvheadend.service
Copied in the content from https://github.com/tvheadend/tvheadend-packaging/blob/master/systemd/tvheadend.service
sudo systemctl enable tvheadend.service

    (1-7/7)