rc_plugin_hook(3)
Run Command library (librc, -lrc) is called for each shareable object found in is set to the hook running, and is set to
Description
RC_PLUGIN_HOOK(3) System Manager’s Manual RC_PLUGIN_HOOK(3)
NAME
rc_plugin_hook — hooks plugins into OpenRC services
LIBRARY
Run Command library (librc, -lrc)
SYNOPSIS
#include <rc.h>
int
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
AUTHORS
Roy Marples <roy@marples.name> OpenRC Mar 16, 2008 RC_PLUGIN_HOOK(3)