documentation/docs/alpine-desktop-setup/post-install/initsystems.md

39 lines
976 B
Markdown
Raw Normal View History

# Initsystems
## OpenRC
2023-12-26 00:41:27 +01:00
Alpine Linux uses OpenRC as init system which has a few configuration option that can be changed. Most options are already explained in the `/etc/rc.conf` file which has to be edited.
### Parallel services
2023-12-26 01:12:06 +01:00
2023-12-26 00:41:27 +01:00
The boot process can be sped up if services are launched parallel (do note that this *can* lead to small issues).
```
rc_parallel="YES"
```
### Logging
2023-12-26 01:12:06 +01:00
2023-12-26 00:49:04 +01:00
What is more important is enabling the logger which logs the rc process. Enable it by setting:
2023-12-26 00:41:27 +01:00
```
rc_logger="YES"
```
2023-12-26 01:12:06 +01:00
2023-12-30 01:29:47 +01:00
To also log the kernel add `klogd`.
2023-12-26 01:12:06 +01:00
```
# apk add sysklogd
# rc-update add klogd boot
```
You can view the logs in `/var/log/dmesg` and `/var/log/messages`
## User services using Runit
2024-05-10 21:42:37 +02:00
If `home-manager` has been initialised and logged into the Wayfire session then it should have started a lot of services automatically. These are created and managed through `home-manager`.
The help and manual pages of runit explain how to use `sv` to manage the services.