From: Joshua Watt Date: Tue, 12 Sep 2023 14:56:30 +0000 (-0600) Subject: nfs-utils: Don't start nfs-statsd.service without exports X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5fae759ff99ccd6e3473cb8aa638fbb23f7583ff;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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. Signed-off-by: Joshua Watt Signed-off-by: Richard Purdie --- 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 4fa64e19980..d1ac785b04b 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