summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Pitt <martin.pitt@ubuntu.com>2015-03-19 11:16:02 -0400
committerSteve Dickson <steved@redhat.com>2015-03-19 11:44:16 -0400
commit1e41488f428cd36b200b48b84d31446e38dfdc50 (patch)
tree8f11409176778f16f5d623850deaea13dfda8e08
parented3e519daac300973cfc8697113cb41e584bcac4 (diff)
downloadnfs-utils-1e41488f428cd36b200b48b84d31446e38dfdc50.tar.gz
nfs-utils-1e41488f428cd36b200b48b84d31446e38dfdc50.tar.xz
nfs-utils-1e41488f428cd36b200b48b84d31446e38dfdc50.zip
systemd: Order NFS server before client
This makes mounting NFS shares from localhost work reliably, as you need to start the server before attempting (client) mounts, and conversely on shutdown need to unmount all shares before stopping the server to avoid hangs. Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r--systemd/nfs-server.service3
1 files changed, 3 insertions, 0 deletions
diff --git a/systemd/nfs-server.service b/systemd/nfs-server.service
index 8010aad..b35e193 100644
--- a/systemd/nfs-server.service
+++ b/systemd/nfs-server.service
@@ -13,6 +13,9 @@ Before= rpc-statd-notify.service
Wants=auth-rpcgss-module.service
After=rpc-gssd.service gssproxy.service rpc-svcgssd.service
+# start/stop server before/after client
+Before=remote-fs-pre.target
+
Wants=nfs-config.service
After=nfs-config.service