The main configuration file for OpenRC is ///​etc/​rc.conf//,​ and contains various options.

+

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 ''​rc_logger="​YES"'',​ this way any errors encountered via booting could be logged and examined later (default log location is ///​var/​log/​rc.log//​).

A common option that could be changed is to enable boot logging by setting ''​rc_logger="​YES"'',​ this way any errors encountered via booting could be logged and examined later (default log location is ///​var/​log/​rc.log//​).

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 ///​etc/​conf.d/​network//​.

+

A static network can be configured by editing ///etc/openrc/​conf.d/​network//​.

=== Display manager ===

=== Display manager ===

-

To boot to a graphical display manager, ///​etc/​conf.d/​xdm//​ can be edited to specify the display manager, and the xdm service could be enabled:

+

To boot to a graphical display manager, ///etc/openrc/​conf.d/​xdm//​ can be edited to specify the display manager, and the xdm service could be enabled:

# rc-update add xdm default

# rc-update add xdm default

Line 138:

Line 138:

====== Configuration ======

====== Configuration ======

-

OpenRC services are present in the ///​etc/​init.d//​ folder, and corresponding configuration files are present in ///​etc/​conf.d//​

+

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/​conf.d/​modules ​ # modules to be loaded at boot

+

/etc/openrc/​conf.d/​modules ​ # modules to be loaded at boot

-

/​etc/​conf.d/​hostname ​ # hostname of the system

+

/etc/openrc/​conf.d/​hostname ​ # hostname of the system

-

/​etc/​conf.d/​keymaps ​ # console keymap

+

/etc/openrc/​conf.d/​keymaps ​ # console keymap

===== 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://​wiki.gentoo.org/​wiki/​OpenRC#​openrc-init|Gentoo wiki]].

For more info, check out the [[https://​wiki.gentoo.org/​wiki/​OpenRC#​openrc-init|Gentoo wiki]].

Line 207:

Line 205:

===== Migrating from /etc/init.d to /​etc/​openrc/​init.d =====

===== Migrating from /etc/init.d to /​etc/​openrc/​init.d =====

-

OpenRC 0.39+, as //​**planned**//​ to shipped via SBo, changes the service and configuration directory to ///​etc/​openrc//​ instead of ///etc//.

+

OpenRC 0.39+, as shipped via SBo, changes the service and configuration directory to ///​etc/​openrc//​ instead of ///etc//.

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.