nfs-utils: Don't start nfs-statsd.service without exports
PATCH 1/1 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 <[email protected]>
--- meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-statd.service | 1 + 1 file changed, 1 insertion(+)
meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-statd.service +1 -0
@@ -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
Signature · 1 line
2.34.1