diff options
author | Joshua Watt <JPEWhacker@gmail.com> | 2023-09-12 08:56:44 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-09-13 09:32:45 +0100 |
commit | 7065f3abee17df8e182db023f674ad7d4ff3640c (patch) | |
tree | a812e07e9c6888edf249330fb2688cdad5ccc5ba /meta/recipes-connectivity/nfs-utils | |
parent | 249456da6c548a03a72df33ff41c40bd80646c33 (diff) | |
download | poky-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')
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 | |||
12 | EnvironmentFile=-@SYSCONFDIR@/nfs-utils.conf | 12 | EnvironmentFile=-@SYSCONFDIR@/nfs-utils.conf |
13 | ExecStart=@SBINDIR@/rpc.mountd -F $MOUNTD_OPTS | 13 | ExecStart=@SBINDIR@/rpc.mountd -F $MOUNTD_OPTS |
14 | LimitNOFILE=@HIGH_RLIMIT_NOFILE@ | 14 | LimitNOFILE=@HIGH_RLIMIT_NOFILE@ |
15 | StateDirectory=nfs | ||
15 | 16 | ||
16 | [Install] | 17 | [Install] |
17 | WantedBy=multi-user.target | 18 | WantedBy=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 | |||
18 | ExecStopPost=@SBINDIR@/exportfs -f | 18 | ExecStopPost=@SBINDIR@/exportfs -f |
19 | ExecReload=@SBINDIR@/exportfs -r | 19 | ExecReload=@SBINDIR@/exportfs -r |
20 | RemainAfterExit=yes | 20 | RemainAfterExit=yes |
21 | StateDirectory=nfs | ||
21 | 22 | ||
22 | [Install] | 23 | [Install] |
23 | WantedBy=multi-user.target | 24 | WantedBy=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 | |||
10 | EnvironmentFile=-@SYSCONFDIR@/nfs-utils.conf | 10 | EnvironmentFile=-@SYSCONFDIR@/nfs-utils.conf |
11 | ExecStart=@SBINDIR@/rpc.statd -F $STATD_OPTS | 11 | ExecStart=@SBINDIR@/rpc.statd -F $STATD_OPTS |
12 | LimitNOFILE=@HIGH_RLIMIT_NOFILE@ | 12 | LimitNOFILE=@HIGH_RLIMIT_NOFILE@ |
13 | StateDirectory=nfs | ||
13 | 14 | ||
14 | [Install] | 15 | [Install] |
15 | WantedBy=multi-user.target | 16 | WantedBy=multi-user.target |