C H wrote:
> I am running tvheadend v4.2.8-36 from the repository (
https://tvheadend.org/projects/tvheadend/wiki/AptRepositories) on Linux Mint 19.3.
>
> The recording & timeshift directories are on a NFS share mounted via /etc/fstab.
Do the entries in /etc/fstab have the _netdev attribute? If not, they should have.
> Tvheadend ran fine for about 6 months on this system. I'm not a Linux expert, but it seems like a kernel update changed the timing of startup actions. First the NFS shares stopped mounting properly. I fixed that by adding "bg" to the entry options in fstab so it keeps retrying.
>
> Now it seems tvheadend is looking for the mounts too soon and can't find the files. So is there a way to have tvheadend wait until fstab is finished mounting everything? I know there are some functions like this for systemd, but it looks like tvheadend runs from init.d? That is a bit beyond my skill level so far.
I don't use mint but I believe that 19.3 uses systemd. So any init scripts are actually translated by systemd and run as systemd facilities anyway. I haven't done it myself but I believe you should be able to add a drop-in file to add a systemd dependency to tvheadend. I think you'd want to make it depend on remote-fs.target
> Now I have to remember to type "service tvheadend restart" after every reboot.
>
> I saw another thread about delaying tvheadend start, but waiting for fstab to finish seems more robust, if possible.
>
> Any info appreciated. Thanks