Skip to contentSkip to conversation

nfs-utils: Don't start nfs-statsd.service without exports

PATCH New Joshua Watt 1 participant 1 message Sep 12, 2023

lore
Share & tools
lore
#0 lore raw

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.

---
 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
index 4fa64e19980..d1ac785b04b 100644
@@ -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