summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-mountd.service7
-rw-r--r--meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-server.service11
-rw-r--r--meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-statd.service9
3 files changed, 18 insertions, 9 deletions
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-mountd.service b/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-mountd.service
index 28b7388f67..27ea58d366 100644
--- a/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-mountd.service
+++ b/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-mountd.service
@@ -1,7 +1,10 @@
1[Unit] 1[Unit]
2Description=NFS Mount Daemon 2Description=NFS Mount Daemon
3After=rpcbind.service nfs-server.service 3DefaultDependencies=no
4Requires=rpcbind.service nfs-server.service 4Requires=proc-fs-nfsd.mount
5After=proc-fs-nfsd.mount
6After=network.target local-fs.target
7BindsTo=nfs-server.service
5ConditionPathExists=@SYSCONFDIR@/exports 8ConditionPathExists=@SYSCONFDIR@/exports
6 9
7[Service] 10[Service]
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-server.service b/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-server.service
index b9dfe74273..6481377d80 100644
--- a/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-server.service
+++ b/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-server.service
@@ -1,7 +1,11 @@
1[Unit] 1[Unit]
2Description=NFS Server 2Description=NFS server and services
3Requires=rpcbind.service nfs-mountd.service 3DefaultDependencies=no
4After=rpcbind.service 4Requires=network.target proc-fs-nfsd.mount
5Requires=nfs-mountd.service
6Wants=rpcbind.service
7After=local-fs.target
8After=network.target proc-fs-nfsd.mount rpcbind.service nfs-mountd.service
5ConditionPathExists=@SYSCONFDIR@/exports 9ConditionPathExists=@SYSCONFDIR@/exports
6 10
7[Service] 11[Service]
@@ -10,6 +14,7 @@ EnvironmentFile=-@SYSCONFDIR@/nfs-utils.conf
10ExecStartPre=@SBINDIR@/exportfs -r 14ExecStartPre=@SBINDIR@/exportfs -r
11ExecStart=@SBINDIR@/rpc.nfsd $NFSD_OPTS $NFSD_COUNT 15ExecStart=@SBINDIR@/rpc.nfsd $NFSD_OPTS $NFSD_COUNT
12ExecStop=@SBINDIR@/rpc.nfsd 0 16ExecStop=@SBINDIR@/rpc.nfsd 0
17ExecStopPost=@SBINDIR@/exportfs -au
13ExecStopPost=@SBINDIR@/exportfs -f 18ExecStopPost=@SBINDIR@/exportfs -f
14ExecReload=@SBINDIR@/exportfs -r 19ExecReload=@SBINDIR@/exportfs -r
15StandardError=syslog 20StandardError=syslog
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-statd.service b/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-statd.service
index 746dacf056..6e196b8c8c 100644
--- a/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-statd.service
+++ b/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-statd.service
@@ -1,8 +1,9 @@
1[Unit] 1[Unit]
2Description=NFS file locking service 2Description=NFS status monitor for NFSv2/3 locking.
3After=rpcbind.service 3DefaultDependencies=no
4Requires=rpcbind.service 4Conflicts=umount.target
5Before=remote-fs-pre.target 5Requires=nss-lookup.target rpcbind.service
6After=network.target nss-lookup.target rpcbind.service
6 7
7[Service] 8[Service]
8EnvironmentFile=-@SYSCONFDIR@/nfs-utils.conf 9EnvironmentFile=-@SYSCONFDIR@/nfs-utils.conf