aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--documentation/content/en/books/handbook/network-servers/_index.adoc10
1 files 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.