---
name: "rpc.lockd"
section: "8"
platform: "openbsd"
package: "man"
version: "8.0-current-20261101"
release: "OpenBSD 8.0-current (2026-11-01)"
platforms: ["linux", "freebsd", "openbsd", "macos"]
url: "https://new.carta.tech/rpc.lockd"
---

# rpc.lockd(8)

NFS file locking daemon

## NAME

**rpc.lockd** – NFS file locking daemon

## SYNOPSIS

**rpc.lockd** \[**-d** \[*debug\_level*\]\] \[**-g** *grace\_period*\]

## DESCRIPTION

**rpc.lockd** is a daemon which provides file- and record-locking services in an NFS environment.

The options are as follows:

- **-d** \[*debug\_level*\]

  Write debugging information to syslog, recording all RPC transactions to the daemon. These messages are logged with level LOG\_DEBUG and facility LOG\_DAEMON. If *debug\_level* is not specified, level 1 is assumed, giving one log line per protocol operation. Higher debug levels can be specified, causing display of operation arguments and internal operations of the daemon.

- **-g** *grace\_period*

  Specify the grace period, in seconds. During the grace period **rpc.lockd** only accepts requests from hosts which are reinitialising locks which existed before the server restart. The default is 30 seconds.

Error conditions are logged to syslog, irrespective of the debug level, using log level LOG\_ERR and facility LOG\_DAEMON.

The **rpc.lockd** daemon must NOT be invoked by [inetd(8)](/inetd/8.md) because the protocol assumes that the daemon will run from system start time. Instead, it should be run from [rc(8)](/rc/8.md) after the network has been started.

## FILES

- */usr/include/rpcsvc/nlm\_prot.x*

  RPC protocol specification for the network lock manager protocol.

## SEE ALSO

[syslog(3)](/syslog/3.md), [rc(8)](/rc/8.md)

## STANDARDS

The implementation is based on the specification in X/Open CAE Specification C218, "Protocols for X/Open PC Interworking: XNFS, Issue 4", ISBN 1 872630 66 9

## BUGS

The current implementation provides only the server side of the protocol (i.e., clients running other OS types can establish locks on an OpenBSD fileserver, but there is currently no means for an OpenBSD client to establish locks).

The current implementation serialises lock requests that could be shared.
