git: 092bcd63ad - main - Handbook - Network Servers: Improve NFS locking instructions
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 09 Sep 2023 09:22:09 UTC
The branch main has been updated by carlavilla:
URL: https://cgit.FreeBSD.org/doc/commit/?id=092bcd63ad88ce3a460db813b3ce522aa5ec4650
commit 092bcd63ad88ce3a460db813b3ce522aa5ec4650
Author: Sergio Carlavilla Delgado <carlavilla@FreeBSD.org>
AuthorDate: 2023-09-09 09:20:37 +0000
Commit: Sergio Carlavilla Delgado <carlavilla@FreeBSD.org>
CommitDate: 2023-09-09 09:20:37 +0000
Handbook - Network Servers: Improve NFS locking instructions
PR: 238532
Reported by: Ronald F. Guilmette <rfg-freebsd@tristatelogic.com>
---
.../content/en/books/handbook/network-servers/_index.adoc | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/documentation/content/en/books/handbook/network-servers/_index.adoc b/documentation/content/en/books/handbook/network-servers/_index.adoc
index 37ba19b0e3..293a5cf281 100644
--- a/documentation/content/en/books/handbook/network-servers/_index.adoc
+++ b/documentation/content/en/books/handbook/network-servers/_index.adoc
@@ -445,20 +445,18 @@ Refer to man:fstab[5] for a description of all available options.
=== Locking
Some applications require file locking to operate correctly.
-To enable locking, add these lines to [.filename]#/etc/rc.conf# on both the client and server:
+To enable locking, execute the following command on both the client and server:
-[.programlisting]
+[source,shell]
....
-rpc_lockd_enable="YES"
-rpc_statd_enable="YES"
+# sysrc rpc_lockd_enable="YES"
....
-Then start the applications:
+Then start the service:
[source,shell]
....
# service lockd start
-# service statd start
....
If locking is not required on the server, the NFS client can be configured to lock locally by including `-L` when running mount.