summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/nfs-utils
diff options
context:
space:
mode:
authorJoshua Watt <JPEWhacker@gmail.com>2023-09-12 08:56:44 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-09-13 09:32:45 +0100
commit7065f3abee17df8e182db023f674ad7d4ff3640c (patch)
treea812e07e9c6888edf249330fb2688cdad5ccc5ba /meta/recipes-connectivity/nfs-utils
parent249456da6c548a03a72df33ff41c40bd80646c33 (diff)
downloadpoky-7065f3abee17df8e182db023f674ad7d4ff3640c.tar.gz
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 <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/nfs-utils')
-rw-r--r--meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-mountd.service1
-rw-r--r--meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-server.service1
-rw-r--r--meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-statd.service1
3 files changed, 3 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-mountd.service b/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-mountd.service
index c01415de84..ebfe64b9ce 100644
--- a/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-mountd.service
+++ b/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-mountd.service
@@ -12,6 +12,7 @@ ConditionPathExists=@SYSCONFDIR@/exports
12EnvironmentFile=-@SYSCONFDIR@/nfs-utils.conf 12EnvironmentFile=-@SYSCONFDIR@/nfs-utils.conf
13ExecStart=@SBINDIR@/rpc.mountd -F $MOUNTD_OPTS 13ExecStart=@SBINDIR@/rpc.mountd -F $MOUNTD_OPTS
14LimitNOFILE=@HIGH_RLIMIT_NOFILE@ 14LimitNOFILE=@HIGH_RLIMIT_NOFILE@
15StateDirectory=nfs
15 16
16[Install] 17[Install]
17WantedBy=multi-user.target 18WantedBy=multi-user.target
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-server.service b/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-server.service
index 5c845b7e82..15ceee04d0 100644
--- a/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-server.service
+++ b/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-server.service
@@ -18,6 +18,7 @@ ExecStopPost=@SBINDIR@/exportfs -au
18ExecStopPost=@SBINDIR@/exportfs -f 18ExecStopPost=@SBINDIR@/exportfs -f
19ExecReload=@SBINDIR@/exportfs -r 19ExecReload=@SBINDIR@/exportfs -r
20RemainAfterExit=yes 20RemainAfterExit=yes
21StateDirectory=nfs
21 22
22[Install] 23[Install]
23WantedBy=multi-user.target 24WantedBy=multi-user.target
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
10EnvironmentFile=-@SYSCONFDIR@/nfs-utils.conf 10EnvironmentFile=-@SYSCONFDIR@/nfs-utils.conf
11ExecStart=@SBINDIR@/rpc.statd -F $STATD_OPTS 11ExecStart=@SBINDIR@/rpc.statd -F $STATD_OPTS
12LimitNOFILE=@HIGH_RLIMIT_NOFILE@ 12LimitNOFILE=@HIGH_RLIMIT_NOFILE@
13StateDirectory=nfs
13 14
14[Install] 15[Install]
15WantedBy=multi-user.target 16WantedBy=multi-user.target