Enjoy Slackware 15.0!
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
howtos:general_admin:openrc [2018/11/30 18:52 (UTC)] aaditya openrc-init is the default now |
howtos:general_admin:openrc [2020/04/12 15:08 (UTC)] aaditya [Note] remove extra word |
||
---|---|---|---|
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 161: | Line 161: | ||
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, | ||
- | For more info, check out the [[https://wiki.gentoo.org/wiki/OpenRC# | + | ==== Note ==== |
+ | |||
+ | The **ck-system-stop** and **ck-system-restart** files in the [[https://github.com/ConsoleKit2/ConsoleKit2/ | ||
====== Troubleshooting ====== | ====== Troubleshooting ====== | ||
Line 196: | Line 198: | ||
**zap** resets the service state, allowing us to start it again. | **zap** resets the service state, allowing us to start it again. | ||
+ | |||
+ | ===== openrc-init ===== | ||
+ | |||
+ | Since version **0.25**, openrc provides // | ||
+ | |||
+ | This allows switching between OpenRC and other init systems, for example sysvinit, just by changing boot parameters. | ||
+ | |||
+ | For more info, check out the [[https:// | ||
===== 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. |