---
name: "ocf_heartbeat_SphinxSearchDaemon"
section: "7"
platform: "linux"
package: "resource-agents"
version: "1:4.16.0-3+deb13u2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/ocf_heartbeat_SphinxSearchDaemon"
---

# ocf\_heartbeat\_SphinxSearchDaemon(7)

Manages the Sphinx search daemon.

## NAME

ocf\_heartbeat\_SphinxSearchDaemon - Manages the Sphinx search daemon.

## SYNOPSIS

**SphinxSearchDaemon** \[start \| stop \| monitor \| meta-data \| validate-all\]

## DESCRIPTION

This is a searchd Resource Agent. It manages the Sphinx Search Daemon.

## SUPPORTED PARAMETERS

**config**

searchd configuration file

(unique, optional, string, default "/etc/sphinx/sphinx.conf")

**searchd**

searchd binary

(optional, string, default "/usr/local/bin/searchd")

**search**

Search binary for functional testing in the monitor action.

(optional, string, default "/usr/local/bin/search")

**testQuery**

Test query for functional testing in the monitor action. The query does not need to match any documents in the index. The purpose is merely to test whether the search daemon is is able to query its indices and respond properly.

(optional, string, default "Heartbeat\_Monitor\_Query\_Match\_string")

## SUPPORTED ACTIONS

This resource agent supports the following actions (operations):

**start**

Starts the resource. Suggested minimum timeout: 20s.

**stop**

Stops the resource. Suggested minimum timeout: 20s.

**monitor**

Performs a detailed status check. Suggested minimum timeout: 20s. Suggested interval: 10s.

**meta-data**

Retrieves resource agent metadata (internal use only). Suggested minimum timeout: 5s.

**validate-all**

Performs a validation of the resource configuration. Suggested minimum timeout: 20s.

## EXAMPLE CRM SHELL

The following is an example configuration for a SphinxSearchDaemon resource using the [**crm**(8)](/crm/8.md) shell:

```
primitive p_SphinxSearchDaemon ocf:heartbeat:SphinxSearchDaemon \
  op monitor timeout="20s" interval="10s" depth="0"
```

## EXAMPLE PCS

The following is an example configuration for a SphinxSearchDaemon resource using [**pcs**(8)](/pcs/8.md)

```
pcs resource create p_SphinxSearchDaemon ocf:heartbeat:SphinxSearchDaemon \
  op monitor timeout="20s" interval="10s" OCF_CHECK_LEVEL="0"
```

## SEE ALSO

**http://clusterlabs.org/**

## AUTHOR

**ClusterLabs contributors (see the resource agent source for information about individual authors)**
