Skip to content

Commit d99c4f4

Browse files
committed
Fix BOINC log spam
1 parent f69f178 commit d99c4f4

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

background/fix-boinc.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
set -eu
33

44
# Fix BOINC suspension on computer use
5+
# This is also in agx_startup.py, so it may not be necessary here.
56
xhost si:localuser:boinc

physics/boinc/fix_boinc.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/usr/bin/env bash
2+
set -eu
3+
4+
if [ "${EUID}" -ne 0 ]; then
5+
echo "This script should be run as root."
6+
exit 1
7+
fi
8+
9+
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
10+
BOINC_SERVICE_DIR="/etc/systemd/system/boinc-client.service.d"
11+
12+
echo "Applying BOINC fixes."
13+
14+
echo "Suppressing log spam."
15+
# https://wiki.archlinux.org/title/BOINC#Log_spam
16+
mkdir -p "${BOINC_SERVICE_DIR}"
17+
cp "${SCRIPT_DIR}/wayland-syslog-spam.conf" "${BOINC_SERVICE_DIR}/wayland-syslog-spam.conf"
18+
19+
echo "BOINC fixes ready."
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[Service]
2+
LogFilterPatterns=~no authorization protocol specified

0 commit comments

Comments
 (0)