[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
howtos:general_admin:openrc [2018/11/30 19:00 (UTC)] – add section for openrc-init aaditya | howtos:general_admin:openrc [2018/11/30 19:09 (UTC)] – sysconfdir has been changed to /etc/openrc aaditya | ||
---|---|---|---|
Line 19: | Line 19: | ||
# main tty | # main tty | ||
- | ln -s / | + | ln -s /etc/openrc/ |
/ | / | ||
| | ||
- | cp / | + | cp /etc/openrc/ |
- | echo ' | + | echo ' |
| | ||
# additional ttys | # additional ttys | ||
for i in {2..6}; do | for i in {2..6}; do | ||
- | ln -s / | + | ln -s /etc/openrc/ |
/ | / | ||
done | done | ||
| | ||
# serial tty (for servers) | # serial tty (for servers) | ||
- | ln -s / | + | ln -s /etc/openrc/ |
/ | / | ||
| | ||
- | cp / | + | cp /etc/openrc/ |
- | echo ' | + | echo ' |
=== Update boot parameters === | === Update boot parameters === | ||
Line 47: | Line 47: | ||
=== Enable boot logging === | === Enable boot logging === | ||
- | The main configuration file for OpenRC is /// | + | The main configuration file for OpenRC is ///etc/openrc/rc.conf//, and contains various options. |
A common option that could be changed is to enable boot logging by setting '' | A common option that could be changed is to enable boot logging by setting '' | ||
Line 104: | Line 104: | ||
If using wifi with laptops the **NetworkManager** or **wicd** service could be enabled. The combination of dhcpcd and wpa_supplicant (along with a frontend like wpa_gui or wpa_cli) could also be used as a lightweight alternative. | If using wifi with laptops the **NetworkManager** or **wicd** service could be enabled. The combination of dhcpcd and wpa_supplicant (along with a frontend like wpa_gui or wpa_cli) could also be used as a lightweight alternative. | ||
- | A static network can be configured by editing /// | + | A static network can be configured by editing ///etc/openrc/ |
=== Display manager === | === Display manager === | ||
- | To boot to a graphical display manager, /// | + | To boot to a graphical display manager, ///etc/openrc/ |
# rc-update add xdm default | # rc-update add xdm default | ||
Line 138: | Line 138: | ||
====== Configuration ====== | ====== Configuration ====== | ||
- | OpenRC services are present in the /// | + | OpenRC services are present in the ///etc/openrc/init.d// folder, and corresponding configuration files are present in ///etc/openrc/conf.d// |
Some common configuration files include: | Some common configuration files include: | ||
- | / | + | /etc/openrc/ |
- | / | + | /etc/openrc/ |
- | / | + | /etc/openrc/ |
===== Service management ===== | ===== Service management ===== | ||
Line 200: | Line 200: | ||
This allows switching between OpenRC and other init systems, for example sysvinit, just by changing boot parameters. | This allows switching between OpenRC and other init systems, for example sysvinit, just by changing boot parameters. | ||
- | |||
- | It is the default method of booting with OpenRC 0.39+ as shipped by SBo. | ||
For more info, check out the [[https:// | For more info, check out the [[https:// | ||
Line 207: | Line 205: | ||
===== Migrating from /etc/init.d to / | ===== Migrating from /etc/init.d to / | ||
- | OpenRC 0.39+, as // | + | OpenRC 0.39+, as shipped via SBo, changes the service and configuration directory to /// |
This is being done to maintain greater compatibility with a vanilla Slackware install. | This is being done to maintain greater compatibility with a vanilla Slackware install. |