---
name: "pmcd_wait"
section: "1"
platform: "linux"
package: "pcp"
version: "7.2.2-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/pmcd_wait"
---

# pmcd\_wait(1)

wait for PMCD to accept client connections

## NAME

**pmcd\_wait** - wait for PMCD to accept client connections

## SYNOPSIS

**$PCP\_BINADM\_DIR/pmcd\_wait** \[**-v?**\] \[**-D** *debug*\] \[**-h** *host*\] \[**-t** *timeout*\]

## DESCRIPTION

**pmcd\_wait** waits for the Performance Metrics Collector Daemon (PMCD) to be running and accepting client connections.

Unless directed to another host by the **-h** option, **pmcd\_wait** will try to contact [**pmcd**(1)](/pmcd/1.md) on the local host.

**pmcd\_wait** will timeout and abandon the attempt to connect to **pmcd** after 60 seconds. This default timeout interval may be changed using the **-t** option, where the *interval* argument follows the syntax described in [**PCPIntro**(1)](/PCPIntro/1.md) and in the simplest form may be an unsigned integer (the implied units in this case are seconds).

On successful connection to **pmcd** an exit status of zero is returned.

If an error or timeout occurs, then a non-zero exit status is returned as described below.

## OPTIONS

The available command line options are:

- **-h** *host*, **--host**=*host*

  Connect [**pmcd**(1)](/pmcd/1.md) on *host*, rather than the one on the default localhost.

- **-t** timeout, **--interval**=*timeout*

  Timeout after *timeout* seconds if not connected. The default timeout value is 60 seconds.

- **-v**, **--verbose**

  This option turns the verbose mode on. With the verbose mode off (which is the default), no output will be generated. With verbose mode on, error messages will be output on *stderr*.

- **-?**, **--help**

  Display usage message and exit.

## DIAGNOSTICS

Error messages will be output to *stderr* only if the verbose mode is on.

The following exit status codes are returned:

- **0**

  **pmcd\_wait** was able to successfully connect to **pmcd** within the timeout period.

- **1**

  A usage error occurred, use **-v** for more details.

- **2**

  No connection was made in the timeout interval. This will happen if **pmcd** is running but takes too long to complete the client connection, or if **pmcd** is not running and all connection attempts in the timeout interval failed with the error ECONNREFUSED.

- **3**

  A UNIX error occurred, use **-v** for more details.

- **4**

  A PCP error occurred, use **-v** for more details.

## PCP ENVIRONMENT

Environment variables with the prefix **PCP\_** are used to parameterize the file and directory names used by PCP. On each installation, the file */etc/pcp.conf* contains the local values for these variables. The **$PCP\_CONF** variable may be used to specify an alternative configuration file, as described in [**pcp.conf**(5)](/pcp.conf/5.md).

## DEBUGGING OPTIONS

The **-D** or **--debug** option enables the output of additional diagnostics on *stderr* to help triage problems, although the information is sometimes cryptic and primarily intended to provide guidance for developers rather than for end-users. *debug* is a comma separated list of debugging options; use [**pmdbg**(1)](/pmdbg/1.md) with the **-l** option to obtain a list of the available debugging options and their meaning.

## SEE ALSO

[**PCPIntro**(1)](/PCPIntro/1.md), [**pmcd**(1)](/pmcd/1.md), [**pcp.conf**(5)](/pcp.conf/5.md) and [**pcp.env**(5)](/pcp.env/5.md).
