diff options
Diffstat (limited to 'meta')
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] |
2 | Description=NFS Mount Daemon | 2 | Description=NFS Mount Daemon |
3 | After=rpcbind.service nfs-server.service | 3 | DefaultDependencies=no |
4 | Requires=rpcbind.service nfs-server.service | 4 | Requires=proc-fs-nfsd.mount |
5 | After=proc-fs-nfsd.mount | ||
6 | After=network.target local-fs.target | ||
7 | BindsTo=nfs-server.service | ||
5 | ConditionPathExists=@SYSCONFDIR@/exports | 8 | ConditionPathExists=@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] |
2 | Description=NFS Server | 2 | Description=NFS server and services |
3 | Requires=rpcbind.service nfs-mountd.service | 3 | DefaultDependencies=no |
4 | After=rpcbind.service | 4 | Requires=network.target proc-fs-nfsd.mount |
5 | Requires=nfs-mountd.service | ||
6 | Wants=rpcbind.service | ||
7 | After=local-fs.target | ||
8 | After=network.target proc-fs-nfsd.mount rpcbind.service nfs-mountd.service | ||
5 | ConditionPathExists=@SYSCONFDIR@/exports | 9 | ConditionPathExists=@SYSCONFDIR@/exports |
6 | 10 | ||
7 | [Service] | 11 | [Service] |
@@ -10,6 +14,7 @@ EnvironmentFile=-@SYSCONFDIR@/nfs-utils.conf | |||
10 | ExecStartPre=@SBINDIR@/exportfs -r | 14 | ExecStartPre=@SBINDIR@/exportfs -r |
11 | ExecStart=@SBINDIR@/rpc.nfsd $NFSD_OPTS $NFSD_COUNT | 15 | ExecStart=@SBINDIR@/rpc.nfsd $NFSD_OPTS $NFSD_COUNT |
12 | ExecStop=@SBINDIR@/rpc.nfsd 0 | 16 | ExecStop=@SBINDIR@/rpc.nfsd 0 |
17 | ExecStopPost=@SBINDIR@/exportfs -au | ||
13 | ExecStopPost=@SBINDIR@/exportfs -f | 18 | ExecStopPost=@SBINDIR@/exportfs -f |
14 | ExecReload=@SBINDIR@/exportfs -r | 19 | ExecReload=@SBINDIR@/exportfs -r |
15 | StandardError=syslog | 20 | StandardError=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] |
2 | Description=NFS file locking service | 2 | Description=NFS status monitor for NFSv2/3 locking. |
3 | After=rpcbind.service | 3 | DefaultDependencies=no |
4 | Requires=rpcbind.service | 4 | Conflicts=umount.target |
5 | Before=remote-fs-pre.target | 5 | Requires=nss-lookup.target rpcbind.service |
6 | After=network.target nss-lookup.target rpcbind.service | ||
6 | 7 | ||
7 | [Service] | 8 | [Service] |
8 | EnvironmentFile=-@SYSCONFDIR@/nfs-utils.conf | 9 | EnvironmentFile=-@SYSCONFDIR@/nfs-utils.conf |