How starting tvheadend with systemstart
#1
Hello there.
I havee ubuntu 14.04 with XBMC in autostart running with Sundtek DVB-S2 Stick V3. All running well.

Now I got Sundtek stick in V4 and I have the problem that the tvheadend backend is not started. In XBMC I get the error message that the socket can't open. Actually I create a file

/etc/sundtek.conf

with line:

device_attach=/etc/init.d/tvheadend restart

It worked well until now.
But if I start the tvheadend manually and then XMBC it works well. XBMC is starting directly with systemstart. How can I add the tvheadend too into system start?
Reply
#2
You need to write an init-script and update rc-d. Google for more information.
Reply
#3
If you installed tvheadend via the repository it should have created an init script for you already. If you're building from source you can use the Autobuild.sh script to create a .deb file that can be installed, which also creates the necessary init scripts.
Reply
#4
(2014-10-27, 13:22)negge Wrote: If you installed tvheadend via the repository it should have created an init script for you already. If you're building from source you can use the Autobuild.sh script to create a .deb file that can be installed, which also creates the necessary init scripts.

Hi.
I am using an init file where tvheadend is started after bootup. But it don't work. So I wrote a scipt where I read out that the tvheadend web browser port but it is always down. I realize it like:

Code:
nmap -p 9981 localhost #Port availalbe?. But it is always closed
if nc -d -z -w 5 localhost 9981 2>/dev/null; then
          echo "$? -> 0 Port open -> OK.
          xbmc-start.sh
          else
          echo "$? -> 1 Port closed."
      sudo killall -9 tvheadend
         sleep 5
         tvheadend > /usr/local/bin/tvheadend.log 2>&1 &
          sleep 40 #Waiting for tvheadend
          nmap -p 9981 localhost #Port now open or close? But always close
         fi

In tvheadend log file I got the message that is successfull running but I can't reach the webbrowser. How can I find the problemHuh How can I debug and get more informations...?

Attached the log...

Quote:Nov 07 22:47:57.279 [ INFO]:charset: 71 entries loaded
Nov 07 22:47:57.297 [ INFO]:dvb: Found adapter /dev/dvb/adapter0 (Sundtek DVB-S/S2 (IV)) via PCI
Nov 07 22:47:57.302 [ INFO]:dvb: Adapter /dev/dvb/adapter0 will run in full mux mode
Nov 07 22:48:00.457 [ INFO]:CSA: Using SSE2 128bit parallel descrambling
Nov 07 22:48:00.457 [ INFO]:epggrab: module eit created
Nov 07 22:48:00.457 [ INFO]:epggrab: module uk_freesat created
Nov 07 22:48:00.457 [ INFO]:epggrab: module uk_freeview created
Nov 07 22:48:00.458 [ INFO]:epggrab: module viasat_baltic created
Nov 07 22:48:00.470 [ INFO]:epggrab: module opentv-skyuk created
Nov 07 22:48:00.471 [ INFO]:epggrab: module opentv-skyit created
Nov 07 22:48:00.471 [ INFO]:epggrab: module opentv-ausat created
Nov 07 22:48:00.474 [ INFO]:epggrab: module pyepg created
Nov 07 22:48:00.474 [ INFO]:epggrab: module xmltv created
Nov 07 22:48:05.661 [ INFO]:epggrab: module /usr/bin/tv_grab_uk_rt created
Nov 07 22:48:05.662 [ INFO]:epggrab: module /usr/bin/tv_grab_na_dtv created
Nov 07 22:48:05.662 [ INFO]:epggrab: module /usr/bin/tv_grab_eu_egon created
Nov 07 22:48:05.662 [ INFO]:epggrab: module /usr/bin/tv_grab_ch_search created
Nov 07 22:48:05.663 [ INFO]:epggrab: module /usr/bin/tv_grab_combiner created
Nov 07 22:48:05.663 [ INFO]:epggrab: module /usr/bin/tv_grab_pt_meo created
Nov 07 22:48:05.663 [ INFO]:epggrab: module /usr/bin/tv_grab_it created
Nov 07 22:48:05.663 [ INFO]:epggrab: module /usr/bin/tv_grab_se_tvzon created
Nov 07 22:48:05.663 [ INFO]:epggrab: module /usr/bin/tv_grab_fr_kazer created
Nov 07 22:48:05.664 [ INFO]:epggrab: module /usr/bin/tv_grab_in created
Nov 07 22:48:05.664 [ INFO]:epggrab: module /usr/bin/tv_grab_uk_bleb created
Nov 07 22:48:05.664 [ INFO]:epggrab: module /usr/bin/tv_grab_ar created
Nov 07 22:48:05.664 [ INFO]:epggrab: module /usr/bin/tv_grab_il created
Nov 07 22:48:05.664 [ INFO]:epggrab: module /usr/bin/tv_grab_eu_epgdata created
Nov 07 22:48:05.665 [ INFO]:epggrab: module /usr/bin/tv_grab_es_laguiatv created
Nov 07 22:48:05.665 [ INFO]:epggrab: module /usr/bin/tv_grab_is created
Nov 07 22:48:05.665 [ INFO]:epggrab: module /usr/bin/tv_grab_se_swedb created
Nov 07 22:48:05.665 [ INFO]:epggrab: module /usr/bin/tv_grab_huro created
Nov 07 22:48:05.666 [ INFO]:epggrab: module /usr/bin/tv_grab_dk_dr created
Nov 07 22:48:05.666 [ INFO]:epggrab: module /usr/bin/tv_grab_na_dd created
Nov 07 22:48:05.666 [ INFO]:epggrab: module /usr/bin/tv_grab_fr created
Nov 07 22:48:05.666 [ INFO]:epggrab: module /usr/bin/tv_grab_no_gfeed created
Nov 07 22:48:05.667 [ INFO]:epggrab: module /usr/bin/tv_grab_fi created
Nov 07 22:48:05.667 [ INFO]:epggrab: module /usr/bin/tv_grab_za created
Nov 07 22:48:05.667 [ INFO]:epggrab: module /usr/bin/tv_grab_hr created
Nov 07 22:48:16.641 [ INFO]:epgdb: loaded v2
Nov 07 22:48:16.642 [ INFO]:epgdb: channels 0
Nov 07 22:48:16.642 [ INFO]:epgdb: brands 0
Nov 07 22:48:16.642 [ INFO]:epgdb: seasons 0
Nov 07 22:48:16.642 [ INFO]:epgdb: episodes 82069
Nov 07 22:48:16.642 [ INFO]:epgdb: broadcasts 82068
Nov 07 22:48:16.645 [ INFO]:dvr: Creating new configuration ''
Nov 07 22:48:16.724 [ NOTICE]:START: HTS Tvheadend version 3.4.28~geb79aee~trusty started, running as PID:2310 UID:1000 GID:1000, settings located in '/home/ubuntu/.hts/tvheadend'
Nov 07 22:48:17.576 [ INFO]:AVAHI: Service 'Tvheadend' successfully established.
Reply

Logout Mark Read Team Forum Stats Members Help
How starting tvheadend with systemstart0