rc_plugin_hook - Man Page

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

openrc(8), openrc-run(8)

Authors

Roy Marples <roy@marples.name>

Referenced By

openrc-run(8).

March 16, 2008