Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:system:init_systems:openrc [2022/10/24 15:18] throgh [Services often required] |
en:system:init_systems:openrc [2022/10/24 18:43] (current) throgh [Runlevels] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ?!(WIP)!? | ||
- | |||
====== OpenRC ====== | ====== OpenRC ====== | ||
OpenRC is a init system for Operational Systems GNU/Linux, GNU/Hurd and Unix, compatible with [[https:// | OpenRC is a init system for Operational Systems GNU/Linux, GNU/Hurd and Unix, compatible with [[https:// | ||
Line 73: | Line 71: | ||
</ | </ | ||
===== Runlevels ===== | ===== Runlevels ===== | ||
- | OpenRC, as well as sysvinit and init (BSD), has a concept of task execution levels (Runlevels), | + | OpenRC, as well as sysvinit and init (BSD), has a concept of task execution levels (Runlevels), |
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | + | The <color # |
+ | <code bash> | ||
+ | # rc-status | ||
+ | * Caching service dependencies ... [ ok ] | ||
+ | Runlevel: default | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | |||
+ | All runlevels are represented as folders in <color # | ||
+ | |||
+ | Calling openrc with an argument (<color # | ||
+ | |||
+ | Managing runlevels is usually done through the <color # | ||
+ | <color # | ||
- | !?(WIP)!?!? | + | <note important> |
+ | The default startup uses the runlevels <color # | ||
====== OpenRC ====== | ====== OpenRC ====== | ||
- | Since Hyperbola has announced the [[https:// | + | Since Hyperbola has announced the [[https:// |
===== What is OpenRC? ===== | ===== What is OpenRC? ===== | ||
Line 142: | Line 155: | ||
===== Migration ===== | ===== Migration ===== | ||
- | Since OpenRC is included by default and systemd is blacklisted by [[https:// | + | <note important> |
- | + | ||
- | <code bash> | + | |
- | run ' | + | |
- | run ' | + | |
- | </ | + | |
- | + | ||
- | Running these command(s) adds the service(s) to the specified runlevels. For example on running: | + | |
- | + | ||
- | <code bash> | + | |
- | # rc-update add cronie default | + | |
- | </ | + | |
- | + | ||
- | The cronie service would be added to the default runlevel and would automatically be started at boot. | + | |
- | + | ||
- | cronie (for cron) and haveged (for entropy harvesting) are some common services that can be enabled. | + | |
- | + | ||
- | Also you need to install [[https:// | + | |
- | + | ||
- | <code bash> | + | |
- | # pacman -S polkit | + | |
- | </ | + | |
- | + | ||
- | <note important> | + | |
- | + | ||
- | <note important> | + | |
===== Configuration ===== | ===== Configuration ===== | ||
Line 247: | Line 235: | ||
Unlike another distros with OpenRC support, the DM is launched directly. | Unlike another distros with OpenRC support, the DM is launched directly. | ||
- | For example, with <color # | + | For example, with <color # |
<code bash> | <code bash> | ||
- | # rc-update add lightdm | + | # rc-update add wdm default |
</ | </ | ||
Line 292: | Line 280: | ||
<code bash> | <code bash> | ||
- | # ln -s /dev/null /etc/ | + | # ln -s /dev/null /lib/ |
</ | </ | ||
Line 336: | Line 324: | ||
==== The system can't shutdown correctly ==== | ==== The system can't shutdown correctly ==== | ||
- | Begin with OpenRC 0.28 SysVinit is replaced with openrc-init, | + | Begin with OpenRC 0.28 SysVinit is replaced with openrc-init, |
===== Acknowledgement ===== | ===== Acknowledgement ===== | ||
This wiki article is based on **[[https:// | This wiki article is based on **[[https:// |