Difference between revisions of "OpenRC"

From ArchWiki
Jump to: navigation, search
(migrated from Openrc)
 
m
Line 1: Line 1:
 
[[Category:Boot process]]
 
[[Category:Boot process]]
{{Note|Arch uses [[systemd]] by default. If you use openrc, please mention so while asking for help.}}
+
{{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 {{Ic|/sbin/init}}. It is not a replacement for {{Ic|/sbin/init}}.
 
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 {{Ic|/sbin/init}}. It is not a replacement for {{Ic|/sbin/init}}.
Line 20: Line 20:
 
  # rc-update add udev default
 
  # rc-update add udev default
  
== Links ==
+
== External Links ==
 
[http://en.wikipedia.org/wiki/OpenRC OpenRC wikipedia entry]
 
[http://en.wikipedia.org/wiki/OpenRC OpenRC wikipedia entry]
  
 
[https://bbs.archlinux.org/viewtopic.php?id=152606 Forum thread about OpenRC in Arch]
 
[https://bbs.archlinux.org/viewtopic.php?id=152606 Forum thread about OpenRC in Arch]

Revision as of 15:58, 15 November 2012

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 /sbin/init. It is not a replacement for /sbin/init.

Installation

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).

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.

Configuration

For booting with OpenRC add init=/sbin/init-openrc to the kernel line in your bootloader configuration. If you want to go back to systemd replace it with 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 default

External Links

OpenRC wikipedia entry

Forum thread about OpenRC in Arch