---
name: "rc_plugin_hook"
section: "3"
platform: "linux"
package: "librc-dev"
version: "0.56-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/rc_plugin_hook"
---

# rc\_plugin\_hook(3)

hooks plugins into OpenRC services

## NAME

**rc\_plugin\_hook** – hooks plugins into OpenRC services

## LIBRARY

Run Command library (librc, -lrc)

## SYNOPSIS

**#include \<rc.h\>**

*int* *Fn* *rc\_plugin\_hook* *RC\_HOOK hook* *const char \*name*\

## DESCRIPTION

**rc\_plugin\_hook**() is called for each shareable object found in */lib/rc/plugins*. *hook* is set to the hook running, and *name* is set to the name of the runlevel or name of the service.

Plugins can affect the parent environment by writing NULL separated strings to *rc\_environ\_fd*.

## SEE ALSO

[openrc(8)](/openrc/8.md), [openrc-run(8)](/openrc-run/8.md)

## AUTHORS

Roy Marples \<roy@marples.name\>
