Hello,
this is the full unit:
# /etc/systemd/system/vdr.service
[Unit]
Description=Video Disk Recorder
Wants=systemd-udev-settle.service
After=systemd-udev-settle.service
[Service]
Type=notify
ExecStartPre=/bin/sh /usr/lib/vdr/merge-commands.sh "commands"
ExecStartPre=/bin/sh /usr/lib/vdr/merge-commands.sh "reccmds"
ExecStart=/usr/bin/vdr
Restart=on-failure
RestartPreventExitStatus=0 2
[Install]
WantedBy=multi-user.target
# /etc/systemd/system/vdr.service.d/override.conf
[Unit]
After=remote-fs.target
Requires=remote-fs.target
I only added the x-systemd options to /etc/fstab because the filesystems where not mounted at boot time at all with the old fstab options that I used before the upgrade to Debian (I did use yavdr before - a distro that was based on a super old 12.x version of Ubuntu). There I just used
192.168.1.2:/video /video nfs defaults,rsize=8192,wsize=8192,soft,nolock,noatime 0 0
If I try with this entry, the auto-generated video.mount unit fails as it seems to be started too early:
● video.mount - /video
Loaded: loaded (/etc/fstab; generated)
Active: failed (Result: exit-code) since Fri 2021-07-02 19:26:02 CEST; 2min 46s ago
Where: /video
What: 192.168.1.2:/video
Docs: man:fstab(5)
man:systemd-fstab-generator(8)
Jul 02 19:26:02 vdr systemd[1]: Mounting /video...
Jul 02 19:26:02 vdr mount[403]: mount.nfs: Network is unreachable
Jul 02 19:26:02 vdr systemd[1]: video.mount: Mount process exited, code=exited, status=32/n/a
Jul 02 19:26:02 vdr systemd[1]: video.mount: Failed with result 'exit-code'.
Jul 02 19:26:02 vdr systemd[1]: Failed to mount /video.
Best regards,
Reiner