From 249456da6c548a03a72df33ff41c40bd80646c33 Mon Sep 17 00:00:00 2001 From: Joshua Watt Date: Tue, 12 Sep 2023 08:56:30 -0600 Subject: 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 Signed-off-by: Richard Purdie --- meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-statd.service | 1 + 1 file changed, 1 insertion(+) (limited to 'meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-statd.service') 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 Conflicts=umount.target Requires=nss-lookup.target rpcbind.service After=network.target nss-lookup.target rpcbind.service +ConditionPathExists=@SYSCONFDIR@/exports [Service] EnvironmentFile=-@SYSCONFDIR@/nfs-utils.conf -- cgit v1.2.3-54-g00ecf