2015-12-04 16:52:19 -06:00
|
|
|
.\" Copyright (c) 2007-2015 The OpenRC Authors.
|
|
|
|
.\" See the Authors file at the top-level directory of this distribution and
|
|
|
|
.\" https://github.com/OpenRC/openrc/blob/master/AUTHORS
|
2007-12-24 22:03:27 +00:00
|
|
|
.\"
|
2015-12-04 16:52:19 -06:00
|
|
|
.\" This file is part of OpenRC. It is subject to the license terms in
|
|
|
|
.\" the LICENSE file found in the top-level directory of this
|
|
|
|
.\" distribution and at https://github.com/OpenRC/openrc/blob/master/LICENSE
|
|
|
|
.\" This file may not be copied, modified, propagated, or distributed
|
|
|
|
.\" except according to the terms contained in the LICENSE file.
|
2007-12-24 22:03:27 +00:00
|
|
|
.\"
|
2008-03-16 17:00:56 +00:00
|
|
|
.Dd Mar 16, 2008
|
2007-12-24 22:03:27 +00:00
|
|
|
.Dt RC_PLUGIN_HOOK 3 SMM
|
|
|
|
.Os OpenRC
|
|
|
|
.Sh NAME
|
|
|
|
.Nm rc_plugin_hook
|
|
|
|
.Nd hooks plugins into OpenRC services
|
|
|
|
.Sh LIBRARY
|
|
|
|
Run Command library (librc, -lrc)
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.In rc.h
|
2008-03-16 17:00:56 +00:00
|
|
|
.Ft int Fn rc_plugin_hook "RC_HOOK hook" "const char *name"
|
2007-12-24 22:03:27 +00:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Fn rc_plugin_hook
|
|
|
|
is called for each shareable object found in
|
|
|
|
.Pa /lib/rc/plugins .
|
|
|
|
.Fa hook
|
|
|
|
is set to the hook running, and
|
|
|
|
.Fa name
|
|
|
|
is set to the name of the runlevel or name of the service.
|
|
|
|
.Pp
|
2010-01-08 03:39:25 -05:00
|
|
|
Plugins can affect the parent environment by writing NULL separated strings to
|
2007-12-24 22:03:27 +00:00
|
|
|
.Va rc_environ_fd .
|
|
|
|
.Sh SEE ALSO
|
2013-12-11 17:39:38 -06:00
|
|
|
.Xr openrc 8 ,
|
2013-12-21 14:51:11 -06:00
|
|
|
.Xr openrc-run 8
|
2007-12-24 22:03:27 +00:00
|
|
|
.Sh AUTHORS
|
2008-12-30 19:08:51 +00:00
|
|
|
.An Roy Marples <roy@marples.name>
|