2024-07-10 22:26:12 +02:00
# Init system
2024-01-20 16:33:23 +01:00
## OpenRC
2023-12-26 00:41:27 +01:00
2024-07-10 22:26:12 +02:00
Alpine Linux uses OpenRC as init system which has a few configuration options that can be changed. Most options are already explained in the `/etc/rc.conf` file which has to be edited.
2023-12-26 00:41:27 +01:00
2024-01-20 16:33:23 +01:00
### Parallel services
2023-12-26 01:12:06 +01:00
2024-07-10 22:26:12 +02:00
The boot process can be sped up if services are launched parallel (do note that this *can* potentially lock the boot process).
2023-12-26 00:41:27 +01:00
```
rc_parallel="YES"
```
2024-01-20 16:33:23 +01:00
### 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
```
2024-07-10 22:26:12 +02:00
You can view the logs in `/var/log/dmesg` and `/var/log/messages` .
2024-01-20 16:33:23 +01:00
2024-07-10 22:26:12 +02:00
## 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` .
2024-07-10 22:26:12 +02:00
The help and manual pages of `runit` explain how to use `sv` to manage the services.