diff options
author | Andreas Oberritter <obi@opendreambox.org> | 2016-11-30 23:43:06 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-12-08 10:31:30 +0000 |
commit | f46e54c7c9069f8d84483e1ba4cadaa4300c3e18 (patch) | |
tree | 8ad6d1ac2e446b70490e0ead731e30b6d851dfae /meta/recipes-connectivity | |
parent | a6ae43003adfaff38d6b540672a1511fee53eb2d (diff) | |
download | poky-f46e54c7c9069f8d84483e1ba4cadaa4300c3e18.tar.gz |
nfs-utils: sync systemd unit files with nfs-utils.git
nfs-server failed to start after installation from a package feed.
(From OE-Core rev: c4d276f9f639a1a534789de12a4783ae931e6aa4)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity')
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 |