MCPcopy Index your code
hub / github.com/OpenRC/openrc

github.com/OpenRC/openrc @0.63.3

Chat with this repo
repository ↗ · DeepWiki ↗ · release 0.63.3 ↗ · + Follow
492 symbols 1,683 edges 58 files 27 documented · 5%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

OpenRC README

OpenRC is a dependency-based init system that works with the system-provided init program, normally /sbin/init.

building and installing

OpenRC uses the meson build system, so use the usual methods for this build system to build and install.

Notes

We don't support building a static OpenRC with PAM.

PKG_PREFIX should be set to where packages install to by default.

LOCAL_PREFIX should be set to where user maintained packages are. Only set LOCAL_PREFIX if different from PKG_PREFIX.

rc and rc.shutdown are the hooks from the BSD init into OpenRC.

devd.conf is modified from FreeBSD to call /etc/rc.devd which is a generic hook into OpenRC.

inittab is the same, but for SysVInit as used by most Linux distributions. This can be found in the support folder.

Obviously, if you're installing this onto a system that does not use OpenRC by default then you may wish to backup the above listed files, remove them and then install so that the OS hooks into OpenRC.

If you are installing this onto a system which has separate / and /usr file systems and expects / to be mounted before /usr, you will need to make sure the appropriate pieces are installed on / by passing the appropriate options to "meson setup" as follows:

$ meson setup \
        --bindir /bin --libdir /lib64 --libexecdir /lib --sbindir /sbin \
        build_path

Discussions

We are testing discussions, so feel free to open topics there.

Reporting Bugs

Please report bugs on our bug tracker.

If you can contribute code , please feel free to do so by opening pull requests.

IRC Channel

We have an official irc channel, #openrc on the libera network. Please connect your irc client to irc.libera.chat and join #openrc on that network.

Core symbols most depended-on inside this repo

eerrorx
called by 212
src/libeinfo/libeinfo.c
rc_stringlist_free
called by 123
src/librc/librc-stringlist.c
eerror
called by 112
src/libeinfo/libeinfo.c
xasprintf
called by 97
src/shared/helpers.h
rc_stringlist_add
called by 95
src/librc/librc-stringlist.c
rc_dirfd
called by 65
src/librc/librc.c
rc_stringlist_new
called by 64
src/librc/librc-stringlist.c
xstrdup
called by 46
src/shared/helpers.h

Shape

Function 354
Class 127
Enum 11

Languages

C96%
C++4%

Modules by API surface

src/librc/librc.c53 symbols
src/libeinfo/libeinfo.c41 symbols
src/openrc-run/openrc-run.c31 symbols
src/librc/librc-depend.c28 symbols
src/shared/misc.c26 symbols
src/openrc/rc.c26 symbols
src/seedrng/seedrng.c25 symbols
src/librc/librc-misc.c17 symbols
src/openrc-init/openrc-init.c16 symbols
src/supervise-daemon/supervise-daemon.c15 symbols
src/shared/selinux.c13 symbols
src/start-stop-daemon/start-stop-daemon.c12 symbols

For agents

$ claude mcp add openrc \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact