DOKK / manpages / debian 11 / librc-dev / rc_plugin_hook.3.en
RC_PLUGIN_HOOK(3) Library Functions Manual (smm) RC_PLUGIN_HOOK(3)

rc_plugin_hookhooks plugins into OpenRC services

Run Command library (librc, -lrc)

#include <rc.h>

int
rc_plugin_hook(RC_HOOK hook, const char *name);

() 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.

openrc(8), openrc-run(8)

Roy Marples <roy@marples.name>

March 16, 2008 OpenRC