diff options
author | Sergio Carlavilla Delgado <carlavilla@FreeBSD.org> | 2023-09-09 09:20:37 +0000 |
---|---|---|
committer | Sergio Carlavilla Delgado <carlavilla@FreeBSD.org> | 2023-09-09 09:20:37 +0000 |
commit | 092bcd63ad88ce3a460db813b3ce522aa5ec4650 (patch) | |
tree | 3194e33dea84232332f4032f616a8d063dd11252 | |
parent | a48ef80fd14dc21c4f58bf488585d0bc666e6f46 (diff) | |
download | doc-092bcd63ad.tar.gz doc-092bcd63ad.zip |
Handbook - Network Servers: Improve NFS locking instructions
PR: 238532
Reported by: Ronald F. Guilmette <rfg-freebsd@tristatelogic.com>
-rw-r--r-- | documentation/content/en/books/handbook/network-servers/_index.adoc | 10 |
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. |