Difference between revisions of "OpenRC"

From ArchWiki
Jump to: navigation, search
(Added note about autoloading)
m (Configuration: link to network configuration page of archwiki.)
Line 20: Line 20:
  # rc-update add udev sysinit
  # rc-update add udev sysinit
{{Warning| The openrc package lacks networking support. You can use {{Pkg|net-tools}} or [[netcfg]] to deal with that.}}
{{Note|The OpenRC package lacks networking support. Take a look [[Network Configuration | here]] for configuring your network.}}
=== Logging ===
=== Logging ===

Revision as of 16:41, 2 February 2013

Note: Arch uses systemd by default. If you use OpenRC, please mention so while asking for help.

OpenRC is an alternate init system developed by Gentoo developers. OpenRC is a dependency based init system that works with the system provided init program, normally sysvinit. It is not a replacement for sysvinit.


OpenRC is available in the AUR. You can choose to install either openrcAUR or openrc-gitAUR package. You will also need to install openrc-arch-services-gitAUR (provides service files for use with openrc on arch) and openrc-sysvinitAUR (a slightly patched version of traditional sysvinit). For the sake of compatibility with initscripts, openrc-sysvinitAUR installs the sysvinit init binary as /sbin/init-openrc.

The packages will be installed under /etc/openrc instead of the default location of /etc, so that users can switch to initscripts or systemd when desired.


For booting with OpenRC add init=/sbin/init-openrc to the kernel line in your bootloader configuration. If you want to switch back to systemd, change it to init=/usr/lib/systemd/systemd.

For detailed instructions on configuring OpenRC, read the man pages, visit the gentoo guide and the gentoo wiki.

It is worth noting that the udev service is not enabled by default. In order to enable it, do:

# rc-update add udev sysinit
Note: The OpenRC package lacks networking support. Take a look here for configuring your network.



If you use syslog-ng, comment out the following line in /etc/syslog-ng/syslog-ng.conf:


and add this line instead:

Note: Without making this change syslog-ng will fail to run and as a result nothing will be logged!

Boot logging

OpenRC's boot logging is disabled by default. To enable it, uncomment the following line in /etc/openrc/rc.conf:



OpenRC sets the hostname from /etc/openrc/conf.d/hostname.

Here is an example file:


Module autoloading

OpenRC doesn't use /etc/modules-load.d/ folder, instead it uses /etc/openrc/conf.d/modules.

add a line like this to that file :


External Links