Dear Maintainer,
rasdaemon(8) says
CONFIG FILE
The rasdaemon program supports a config file to set rasdaemon systemd service environment variables. By default the config file is read from /etc/sysconfig/ras‐
daemon.
The general format is environmentname=value.
the weirdness of that aside, /etc/sysconfig/rasdaemon doesn't exist.
/etc/default/rasdaemon does, however, and says:
# Page Isolation
# Note: Run-time configuration is unsupported, service restart needed.
# Note: this file should be installed at /etc/sysconfig/rasdaemon
# Specify the threshold of isolating buggy pages.
#
# Format:
# [0-9]+[unit]
# Notice: please make sure match this format, rasdaemon will use default value for exception input cases.
#
# Supported units:
# PAGE_CE_REFRESH_CYCLE: D|d (day), H|h (hour), M|m (min), default is in hour
# PAGE_CE_THRESHOLD: K|k (x1000), M|m (x1000k), default is none
#
# The two configs will only take no effect when PAGE_CE_ACTION is "off".
PAGE_CE_REFRESH_CYCLE="24h"
PAGE_CE_THRESHOLD="50"
# Specify the internal action in rasdaemon to exceeding a page error threshold.
#
# off no action
# account only account errors
# soft try to soft-offline page without killing any processes
# This requires an uptodate kernel. Might not be successfull.
# hard try to hard-offline page by killing processes
# Requires an uptodate kernel. Might not be successfull.
# soft-then-hard First try to soft offline, then try hard offlining.
# Note: default offline choice is "soft".
PAGE_CE_ACTION="soft"
Again, it shouldn't on Debian because the service says
$ systemctl cat rasdaemon.service
# /lib/systemd/system/rasdaemon.service
[Unit]
Description=RAS daemon to log the RAS events
# only needed when not running in foreground (--foreground | -f)
#After=syslog.target
[Service]
EnvironmentFile=/etc/default/rasdaemon
ExecStart=/usr/sbin/rasdaemon -f -r
ExecStartPost=/usr/sbin/rasdaemon --enable
ExecStop=/usr/sbin/rasdaemon --disable
Restart=on-abort
[Install]
WantedBy=multi-user.target
To that end, I'm attaching three patches (also at Salsa as
https://salsa.debian.org/tai271828/rasdaemon-sandbox-01/-/merge_requests/1):
* fixing /etc/default/rasdaemon
* fixing rasdaemon(8) by replacing that whole section with
.SH FILES
.B /etc/default/rasdaemon
* fixing rasdaemon(8) and ras-mc-ctl(8) by removing the empty line
from before .TH, which removes the empty line before the heading