Good Day,
Thank you very much for all the hard work that goes into Tvheadend.
TVheadend works brilliantly but I need some help with the following problem:
Running Ubuntu 12.04 LTS and also tested on brand new config Ubuntu 12.10
Install tvheadend 3.2.18 from Ubuntu PPA together with dvbhdhomerun-dkms dvbhdhomerun-utils
All works brilliantly with the following modification in init:
/etc/init/tvheadend.conf
> > #Comment out the existing 'start on' line. See comments in my example, with my changes:
> >
> > #Replaced start line to force wait until dvbhdhomerun-utils has completed
> > #at which time it emits dvbhdhomerun
> > #start on (local-filesystems and net-device-up and started udev-finish)
> > start on dvbhdhomerun
> > stop on runlevel [!2345]
> >
> > expect fork
> > respawn
> >
> > #Added an extra 30 second wait before starting tvheadend, as the userhdhomerun
> > #process in dvbhdhomerun-utils needs to finish completely for tuner discovery
> >
> > script
> >
> > sleep 30
> > followed by existing code
> >
> > end script
> >
My problem is in trying to stop the service:
stop tvheadend = hang at command prompt. The service never stops.
kill (pid of tvheadend) = works but respawns (as it should)
My biggest problem is that when I reboot my tvheadend server, it hangs at "Asking all other services to terminate"
This fails after 2 to 5 minutes and only then the server reboots.
If I uninstall tvheadend, the server reboots within 2 seconds after giving the reboot command.
If I do the following, tvheadend stops correctly instead of hanging:
stop dvbhdhomerun-utils
stop tvheadend
Server now reboots instantly when asked to.
How can I get a graceful but quick reboot?
How can I get "stop tvheadend" to stop tvheadend gracefully and quickly?
Is there any way that if I give the "stop tvheadend" command, I can get the command to first "stop dvbhdhomerun-utils" then "stop tvheadend" ?
For rebooting, is there any way that I can get ubuntu to first stop dvbhdhomerun-utils and then stop tvheadend when restarting the server?
It seems that the "stop on runlevel [!2345]" in the above script is not working, or as a matter of fact, I cannot get the stop tvheadend command to work.
It just hangs and tvheadend continues to run.
Any advice/help appreciated.
Thank You