Project

General

Profile

Delaying tv headend at boot

Added by Alysandyr colquhoun almost 5 years ago

How can I delay tvheadend starting for 30 seconds I have a nass that mounts but I have it set to 15 seconds after boot and I need tvheadend to start after that ?


Replies (8)

RE: Delaying tv headend at boot - Added by Joe User almost 5 years ago

My magic ball wasn't able to tell me what system you are using, so I can not help you. :)

RE: Delaying tv headend at boot - Added by Alysandyr colquhoun almost 5 years ago

Ohh shite sorry I am using a a rpi 4

RE: Delaying tv headend at boot - Added by Joe User almost 5 years ago

And OS? Debian/Ubuntu, Libreelec, other??? It makes a big difference on how tvheadend is started...

RE: Delaying tv headend at boot - Added by Alysandyr colquhoun almost 5 years ago

I am running raspbain buster

RE: Delaying tv headend at boot - Added by Alysandyr colquhoun almost 5 years ago

I have tried reducing the sleep time of the nass mounting but if I make the time less it won't mount at boot my guess is that if I lower the time it is trying to mount before the network has established

RE: Delaying tv headend at boot - Added by Joe User almost 5 years ago

Did you try inserting a

sleep 30

line in /etc/init.d/tvheadend in the "start" section

RE: Delaying tv headend at boot - Added by David G almost 5 years ago

I've just been on this same journey through wanting to use a USB drive to store recordings. This is where I put a 10 second sleep delay and works well;

# Function that starts the daemon/service
#
do_start()
{
    # Return
    #   0 if daemon has been started
    #   1 if daemon was already running
    #   2 if daemon could not be started
    ####################################
    sleep 10
    (1-8/8)