diff options
author | Joshua Watt <JPEWhacker@gmail.com> | 2023-09-12 08:56:30 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-09-13 09:32:45 +0100 |
commit | 249456da6c548a03a72df33ff41c40bd80646c33 (patch) | |
tree | 3e61dfff200df29def84ca4b434cd4ae116a4a14 /meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-statd.service | |
parent | 77e084ca8fe6f3fc33b216fa2ce4c4a2dc7f8fbe (diff) | |
download | poky-249456da6c548a03a72df33ff41c40bd80646c33.tar.gz |
nfs-utils: Don't start nfs-statsd.service without exports
Adds a `ConditionPathExists` to nfs-statsd.service. This allows it to
match the other NFS services and not start if nothing is exported.
(From OE-Core rev: 5fae759ff99ccd6e3473cb8aa638fbb23f7583ff)
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-statd.service')
-rw-r--r-- | meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-statd.service | 1 |
1 files changed, 1 insertions, 0 deletions
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 4fa64e1998..d1ac785b04 100644 --- a/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-statd.service +++ b/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-statd.service | |||
@@ -4,6 +4,7 @@ DefaultDependencies=no | |||
4 | Conflicts=umount.target | 4 | Conflicts=umount.target |
5 | Requires=nss-lookup.target rpcbind.service | 5 | Requires=nss-lookup.target rpcbind.service |
6 | After=network.target nss-lookup.target rpcbind.service | 6 | After=network.target nss-lookup.target rpcbind.service |
7 | ConditionPathExists=@SYSCONFDIR@/exports | ||
7 | 8 | ||
8 | [Service] | 9 | [Service] |
9 | EnvironmentFile=-@SYSCONFDIR@/nfs-utils.conf | 10 | EnvironmentFile=-@SYSCONFDIR@/nfs-utils.conf |