OpenRC
This is a wiki page. Be bold and improve it!
If you have any questions about the content on this page, don't hesitate to open a new ticket and we'll do our best to assist you.
https://en.wikipedia.org/wiki/OpenRC
https://wiki.gentoo.org/wiki/OpenRC
https://wiki.gentoo.org/wiki/Project:OpenRC
https://gitweb.gentoo.org/proj/openrc.git
https://wiki.gentoo.org/wiki/Handbook:X86/Working/Initscripts
Files:
http://linux.overshoot.tv/etc/rc.conf
http://linux.overshoot.tv/etc/init.d
http://linux.overshoot.tv/etc/conf.d
http://linux.overshoot.tv/etc/inittab
http://linux.overshoot.tv/etc/runlevels
http://linux.overshoot.tv/sbin/service
Features
rc_parallel
See the following notes on the way OpenRC implements rc_parallel:
http://skarnet.org/cgi-bin/archive.cgi?2:msp:1034:kjhaapjjepndikfmejje
tmpfiles
See this thread:
http://www.gossamer-threads.com/lists/gentoo/dev/319598
https://forums.gentoo.org/viewtopic-t-1059820-start-0-postdays-0-postord...
Usage
Getting started
Here are a few useful commands to have an overview of how your system is currently configured. None of the commands change anything.
// List all the runlevels:
# rc-status --list
// Show all services and their runlevels:
# rc-update show --verbose
// Show all services, their current status and the runlevel they are currently running under:
# rc-status --all
See
man rc-status
for more options.
To find more about specific services (what they do), try the following:
// Get the full path of a given service:
# service --resolve dhcrelay
/etc/init.d/dhcrelay
// e-file is part of app-portage/pfl:
# e-file dhcrelay
[I] net-misc/dhcp
Available Versions: 4.3.5 4.3.4 4.2.5_p1
Last Installed Ver: 4.3.4(Mon 28 Nov 2016 12:05:04 CST)
Homepage: http://www.isc.org/products/DHCP
Description: ISC Dynamic Host Configuration Protocol (DHCP) client/server
Matched Files: /usr/sbin/dhcrelay; /etc/init.d/dhcrelay; /etc/conf.d/dhcrelay;
The problem here is that some packages provide many services (Open-RC itself provides many) but it is sometimes unclear which service does what, when it is required. More importantly, it is unclear where to find the documentation on each service (which man page, etc.). There probably should be an 'info' function to the service script: service some-service info
which would provide all the necessary pointers.
See also
-
Discussion:
- OpenRC GLEP proposal.