systemd/nfs.mount

21 lines
461 B
SYSTEMD
Raw Normal View History

2024-03-10 14:41:46 +00:00
# 2024-03-10
[Unit]
Description=Docker Mount: NFS
DefaultDependencies=yes
Conflicts=umount.target
Before=docker.service
After=network-online.target
After=systemd-networkd-wait-online.service
[Mount]
Where=/opt/nfs
What=192.168.1.2:/mnt/hdd/nfs
Type=nfs4
Options=_netdev,noauto,soft,intr,nfsvers=4.2,rsize=131072,wsize=131072,noatime,nodiratime
[Install]
WantedBy=systemd-networkd-wait-online.service
WantedBy=network-online.target
WantedBy=multi-user.target