Update mcelog to use daemon mode by default, fix the upstream triggers to actually work, enable systemd, and temporarily add a hack that causes mcelog to run once knowing it will fail due to an upstream kernel bug (first read of /dev/mcelog will fail). NOTE: as soon as upstream fixes are taken this will be cleaned up. Signed-off-by: Jon Masters <jcm@jonmasters.org>
13 lines
445 B
Bash
13 lines
445 B
Bash
#!/bin/sh
|
|
#
|
|
# An upstream kernel bug prevents mcelog from starting normally in
|
|
# daemon mode the first time it is run. So, in the systemd service,
|
|
# we want to start it twice - one as a ExecStartPre that will fail.
|
|
# But systemd will abort the process if the "pre" fails, so we use
|
|
# this script - temporarily - to start the first process.
|
|
#
|
|
# Waiting on Andi Kleen to fix upstream.
|
|
#
|
|
/usr/sbin/mcelog --ignorenodev --syslog --foreground
|
|
exit 0
|