I've been investigating this further. I'm not a linux expert so this might be stupid, but is it normal to have 2 pids for tvheadend?
I see
Apr 11 14:14:12 raspberrypi tvheadend[930]: main: Log started
Apr 11 14:14:12 raspberrypi tvheadend[930]: http: Starting HTTP server 0.0.0.0:9981
Apr 11 14:14:12 raspberrypi tvheadend[930]: htsp: Starting HTSP server 0.0.0.0:9982
Apr 11 14:14:12 raspberrypi tvheadend[621]: Starting Tvheadend: tvheadend.
Apr 11 14:14:12 raspberrypi systemd[1]: Started tvheadend.service.
and
Apr 11 14:14:13 raspberrypi tvheadend[1125]: main: Log started
Apr 11 14:14:13 raspberrypi tvheadend[1125]: tcp: bind:
:9981: Adres is al in gebruik
Apr 11 14:14:13 raspberrypi tvheadend[1125]: tcp: bind: :9982: Adres is al in gebruik
Apr 11 14:14:13 raspberrypi tvheadend[1125]: config: loaded
Apr 11 14:14:13 raspberrypi tvheadend[1125]: config: scanfile (re)initialization with path <none>
Apr 11 14:14:13 raspberrypi tvheadend[394]: Starting Tvheadend: tvheadend
That's why when recording, both processes try to record:
Apr 12 20:18:30 raspberrypi tvheadend[930]: dvr: "Ontvoerd" on "RTL 5 HD" recorder starting
Apr 12 20:18:30 raspberrypi tvheadend[1125]: dvr: "Ontvoerd" on "RTL 5 HD" recorder starting
Apr 12 20:18:30 raspberrypi tvheadend[930]: dvr: About to set stop timer for "Ontvoerd" on "RTL 5 HD" at start 1618252140 and original stop 1618255800 and overall stop at 1618257600
Apr 12 20:18:30 raspberrypi tvheadend[930]: mpegts: 458MHz in Ziggo - tuning on HDHomeRun DVB-C Tuner #0 (192.168.2.5)
Apr 12 20:18:30 raspberrypi tvheadend[930]: tvhdhomerun: tuning to a8qam256-6900:458000000
Apr 12 20:18:30 raspberrypi tvheadend[1125]: dvr: About to set stop timer for "Ontvoerd" on "RTL 5 HD" at start 1618252140 and original stop 1618255800 and overall stop at 1618257600
Apr 12 20:18:30 raspberrypi tvheadend[1125]: mpegts: 458MHz in Ziggo - tuning on HDHomeRun DVB-C Tuner #0 (192.168.2.5)
Apr 12 20:18:30 raspberrypi tvheadend[1125]: tvhdhomerun: tuning to a8qam256-6900:458000000
Apr 12 20:18:30 raspberrypi tvheadend[1125]: tvhdhomerun: failed to acquire lockkey: ERROR: resource locked by 192.168.2.9
I just don't understand why they would both try to use Tuner #0 causing the issue.
And if so, might this be the cause of both issues, happening right after reboot:
Apr 11 14:14:10 raspberrypi systemd[1]: tvheadend.service: Found left-over process 508 (tvheadend) in control group while starting unit. Ignoring.
Apr 11 14:14:10 raspberrypi systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies?