The OpenRC init system
C Shell Makefile Perl
Switch branches/tags
openrc-0.13.11 openrc-0.13.10 openrc-0.13.9 openrc-0.13.8 openrc-0.13.7 openrc-0.13.6 openrc-0.13.5 openrc-0.13.4 openrc-0.13.3 openrc-0.13.2 openrc-0.13.1 openrc-0.13 openrc-0.12.4 openrc-0.12.3 openrc-0.12.2 openrc-0.12.1 openrc-0.12 openrc-0.11.8 openrc-0.11.7 openrc-0.11.6 openrc-0.11.5 openrc-0.11.4 openrc-0.11.3 openrc-0.11.2 openrc-0.11.1 openrc-0.11 openrc-0.10.5 openrc-0.10.4 openrc-0.10.3 openrc-0.10.2 openrc-0.10.1 openrc-0.10 openrc-0.9.9.3 openrc-0.9.9.2 openrc-0.9.9.1 openrc-0.9.9 openrc-0.9.8.4 openrc-0.9.8.3 openrc-0.9.8.2 openrc-0.9.8.1 openrc-0.9.8 openrc-0.9.7 openrc-0.9.6 openrc-0.9.5 openrc-0.9.4 openrc-0.9.3 openrc-0.9.2 openrc-0.9.1 openrc-0.9.0 openrc-0.8.3 openrc-0.8.2 openrc-0.8.1 openrc-0.8.0 openrc-0.7.0 openrc-0.6.8 openrc-0.6.7 openrc-0.6.6 openrc-0.6.5 openrc-0.6.4 openrc-0.6.3 openrc-0.6.2 openrc-0.6.1 openrc-0.6.0 openrc-0.5.3 openrc-0.5.2 openrc-0.5.1 openrc-0.5.0 openrc-0.4.3 openrc-0.4.2 openrc-0.4.1 openrc-0.4.0 openrc-0.3.0 openrc-0.2.5 openrc-0.2.4 openrc-0.2.3 openrc-0.2.2 openrc-0.2.1 openrc-0.2 openrc-0.1 funtoo-openrc-0.12.4-r3 funtoo-openrc-0.12.4-r2 funtoo-openrc-0.12.4-r1 funtoo-openrc-0.12.4-r0 funtoo-openrc-0.12.3-r0 funtoo-openrc-0.12.1 funtoo-openrc-0.12.1-r0 funtoo-openrc-0.12-r2 funtoo-openrc-0.12-r1 funtoo-openrc-0.12-r0 funtoo-openrc-0.10.3 funtoo-openrc-0.10.2-r8 funtoo-openrc-0.10.2-r7 funtoo-openrc-0.10.2-r4 funtoo-openrc-0.10 funtoo-openrc-0.10-r2 funtoo-openrc-0.10-r1 funtoo-openrc-0.8.3 funtoo-openrc-0.8.2_beta2 funtoo-openrc-0.8.2_beta1 funtoo-openrc-0.7.0
Nothing to show
Clone or download
williamh rc-functions.sh: Remove addon support
This is an old relic from Gentoo baselayout-1.x which should not be used
any longer.
Latest commit 2eea73b Jul 10, 2018
Permalink
Failed to load latest commit information.
bash-completion add bash completion support Dec 6, 2017
conf.d modules: remove the ability to rename modules on the fly Jun 29, 2018
etc cgroups: add rc_cgroup_memory_use_hierarchy setting for cgroups v1 Feb 26, 2018
init.d modules: remove the ability to rename modules on the fly Jun 29, 2018
local.d local.d/README: typo fix Aug 15, 2016
man start-stop-daemon: add ability to log stdout or stderr to processes Jun 15, 2018
mk build: standardize installation modes May 11, 2018
pkgconfig Revert "Make einfo routines private" Oct 21, 2013
runlevels split cgroups mounting out of sysfs Nov 28, 2017
scripts fix sysvinit compatibility for shutdown wrapper Jul 11, 2017
sh rc-functions.sh: Remove addon support Jul 10, 2018
src rc-status: initialize uptime pointer to prevent memory corruption Jun 29, 2018
support Reformat and fix titles in documentation Jan 12, 2018
sysctl.d sysctl.d: fix README Feb 10, 2012
test test/setup_env: ensure that eval_ecolors is available on the path. Jan 31, 2017
zsh-completion Add zsh-completion support Dec 7, 2017
.gitignore dist: convert to tar.gz Sep 23, 2016
AUTHORS Convert OpenRC to a centralized copyright/license structure Dec 21, 2015
BUSYBOX.md Reformat and fix titles in documentation Jan 12, 2018
ChangeLog Update ChangeLog Jun 28, 2018
FEATURE-REMOVAL-SCHEDULE.md Reformat and fix titles in documentation Jan 12, 2018
HISTORY.md Reformat and fix titles in documentation Jan 12, 2018
LICENSE Convert OpenRC to a centralized copyright/license structure Dec 21, 2015
Makefile Make bash-completion and zsh-completion optional Dec 7, 2017
Makefile.inc version 0.39 Jun 28, 2018
NEWS.md rc-functions.sh: Remove addon support Jul 10, 2018
README.md Reformat and fix titles in documentation Jan 12, 2018
README.newnet Remove gentoo's net.* scripts Aug 13, 2013
STYLE-GUIDE.md Reformat and fix titles in documentation Jan 12, 2018
TODO Add a potential future problem I can see with metric calculation and … Mar 2, 2012
agetty-guide.md Reformat and fix titles in documentation Jan 12, 2018
runit-guide.md Reformat and fix titles in documentation Jan 12, 2018
s6-guide.md Reformat and fix titles in documentation Jan 12, 2018
service-script-guide.md service-script-guide.md: small cleanups Jun 5, 2018
supervise-daemon-guide.md Reformat and fix titles in documentation Jan 12, 2018
user-guide.md user-guide.md: small cleanups Jun 5, 2018

README.md

OpenRC README

OpenRC is a dependency-based init system that works with the system-provided init program, normally /sbin/init. Currently, it does not have an init program of its own.

Installation

OpenRC requires GNU make.

Once you have GNU Make installed, the default OpenRC installation can be executed using this command:

make install

Configuration

You may wish to configure the installation by passing one or more of the below arguments to the make command

PROGLDFLAGS=-static
LIBNAME=lib64
DESTDIR=/tmp/openrc-image
MKBASHCOMP=no
MKNET=no
MKPAM=pam
MKPREFIX=yes
MKPKGCONFIG=no
MKSELINUX=yes
MKSTATICLIBS=no
MKSYSVINIT=yes
MKTERMCAP=ncurses
MKTERMCAP=termcap
MKZSHCOMP=no
PKG_PREFIX=/usr/pkg
LOCAL_PREFIX=/usr/local
PREFIX=/usr/local
BRANDING=\"Gentoo/$(uname -s)\"

Notes

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

You may need to use PROGLDFLAGS=-Wl,-Bstatic on glibc instead of just -static.

If you are building OpenRC for a Gentoo Prefix installation, add MKPREFIX=yes.

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

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

PREFIX should be set when OpenRC is not installed to /.

If any of the following files exist then we do not overwrite them

/etc/devd.conf
/etc/rc
/etc/rc.shutdown
/etc/conf.d/*

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.

Reporting Bugs

If you are using Gentoo Linux, bugs can be filed on their bugzilla under the gentoo hosted projects product and the openrc component [1]. Otherwise, you can report issues on our github [2].

Better yet, if you can contribute code, please feel free to submit pull requests [3].

IRC Channel

We have an official irc channel, #openrc on freenode, feel free to join us there.

[1] https://bugs.gentoo.org/ [2] https://github.com/openrc/openrc/issues [3] https://github.com/openrc/openrc/pulls