Updated logging

This commit is contained in:
Tastatur 2023-12-26 01:12:06 +01:00
parent e0a30b15a2
commit 2bb4d99557

View file

@ -2,14 +2,27 @@
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. 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
The boot process can be sped up if services are launched parallel (do note that this *can* lead to small issues). The boot process can be sped up if services are launched parallel (do note that this *can* lead to small issues).
``` ```
rc_parallel="YES" rc_parallel="YES"
``` ```
## Logging
What is more important is enabling the logger which logs the rc process. Enable it by setting: What is more important is enabling the logger which logs the rc process. Enable it by setting:
``` ```
rc_logger="YES" rc_logger="YES"
``` ```
To also log the rest of the system add `klogd`.
```
# apk add sysklogd
# rc-update add klogd boot
```
You can view the logs in `/var/log/dmesg` and `/var/log/messages`