git: 092bcd63ad - main - Handbook - Network Servers: Improve NFS locking instructions

Sergio Carlavilla Delgado <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.doc
Message-ID <[email protected]>
The branch main has been updated by carlavilla:

URL: https://cgit.FreeBSD.org/doc/commit/?id=092bcd63ad88ce3a460db813b3ce522aa5ec4650

commit 092bcd63ad88ce3a460db813b3ce522aa5ec4650
Author:     Sergio Carlavilla Delgado <[email protected]>
AuthorDate: 2023-09-09 09:20:37 +0000
Commit:     Sergio Carlavilla Delgado <[email protected]>
CommitDate: 2023-09-09 09:20:37 +0000

    Handbook - Network Servers: Improve NFS locking instructions
    
    PR:             238532
    Reported by:    Ronald F. Guilmette <[email protected]>
---
 .../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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.