From 155cb46dc0e11f3773c03d9e48b68e00be49e223 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolphe=20Br=C3=A9ard?= Date: Tue, 31 Dec 2024 18:13:57 +0100 Subject: [PATCH] Add rtkit-daemon trick --- README.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/README.md b/README.md index 3770da9..b0587c5 100644 --- a/README.md +++ b/README.md @@ -75,3 +75,28 @@ LC_PAPER=fr_FR.UTF-8 LC_TIME=fr_FR.UTF-8 EOF ``` + + +## rtkit-daemon + +Par défaut, [rtkit-daemon][rtkit] a tendance à inonder les journaux systèmes de notifications peu intéressantes : + +``` +déc. 31 14:16:56 lpt-01 rtkit-daemon[1347]: Supervising 12 threads of 9 processes of 1 users. +déc. 31 14:16:56 lpt-01 rtkit-daemon[1347]: Supervising 12 threads of 9 processes of 1 users. +déc. 31 14:17:00 lpt-01 rtkit-daemon[1347]: Supervising 12 threads of 9 processes of 1 users. +déc. 31 14:17:00 lpt-01 rtkit-daemon[1347]: Supervising 12 threads of 9 processes of 1 users. +``` + +La solution est de lui fixer un niveau de journalisation plus adapté : + +``` +sudo mkdir "/etc/systemd/system/rtkit-daemon.service.d" +echo "[Service]\nLogLevelMax=4" | sudo tee /etc/systemd/system/rtkit-daemon.service.d/log.conf >/dev/null +sudo systemctl daemon-reload +sudo systemctl restart rtkit-daemon.service +``` + +Ainsi, `journalctl -f` n'est plus surchargé. + +[rtkit]: https://archlinux.org/packages/extra/x86_64/rtkit/