[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:01 (UTC)] – [openrc-init] remove extra clarification aaditya | howtos:general_admin:openrc [2020/04/12 15:08 (UTC)] – [Shutdown/reboot] add info about wrappers 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 78: | Line 78: | ||
# rc-update add sysklogd default | # rc-update add sysklogd default | ||
# rc-update add dcron default | # rc-update add dcron default | ||
- | # rc-update add alsasound | + | # rc-update add alsasound |
# rc-update add consolekit default | # rc-update add consolekit default | ||
# rc-update add sshd default | # rc-update add sshd default | ||
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 160: | Line 160: | ||
To shutdown or reboot, one will need to use **openrc-shutdown**. To shutdown from a desktop environment using ConsoleKit2, | To shutdown or reboot, one will need to use **openrc-shutdown**. To shutdown from a desktop environment using ConsoleKit2, | ||
+ | |||
+ | ==== Note ==== | ||
+ | |||
+ | The **ck-system-stop** and **ck-system-restart** files in the [[https:// | ||
====== Troubleshooting ====== | ====== Troubleshooting ====== | ||
Line 205: | Line 209: | ||
===== 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. |