From 7065f3abee17df8e182db023f674ad7d4ff3640c Mon Sep 17 00:00:00 2001 From: Joshua Watt Date: Tue, 12 Sep 2023 08:56:44 -0600 Subject: nfs-utils: Add StateDirectory for systemd services Adds `StateDirectory=nfs` for the systemd service. This ensures that 1) and .mount services required for /var/lib/nfs are started before these services, and 2) that /var/lib/nfs exists before starting the services. (From OE-Core rev: ba814211699d40590363b9b80f264218be9d7ad8) 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 d1ac785b04..b519194121 100644 --- a/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-statd.service +++ b/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-statd.service @@ -10,6 +10,7 @@ ConditionPathExists=@SYSCONFDIR@/exports EnvironmentFile=-@SYSCONFDIR@/nfs-utils.conf ExecStart=@SBINDIR@/rpc.statd -F $STATD_OPTS LimitNOFILE=@HIGH_RLIMIT_NOFILE@ +StateDirectory=nfs [Install] WantedBy=multi-user.target -- cgit v1.2.3-54-g00ecf