You are not logged in.

#1 2013-02-15 04:03:53

batrick
Member
Registered: 2012-05-29
Posts: 10

systemd and nfs .mount

Hi,

I'm trying to setup a systemd unit for my NFS mounts. I don't want to use /etc/fstab because I want an openvpn.service dependency. However, for now, I'm omitting that dependency due to debugging. Here is the current unit file I have:

# cat host\@.mount 
[Unit]
Description=%i mount
DefaultDependencies=no
Requires=local-fs.target network.target rpc-statd.service
Conflicts=umount.target

[Mount]
What=host:/%i
Where=/%i
Type=nfs
Options=user,async,atime,exec,rw,wsize=32768,rsize=32768
DirectoryMode=0755
TimeoutSec=20

[Install]
WantedBy=multi-user.target

When I try to enable this I get the famously vague error:

# systemctl enable ./host\@mnt.mount
Failed to issue method call: Invalid argument

Any ideas on how to fix this? Thanks!

Offline

Board footer

Powered by FluxBB