mcelog/mcelog.setup
Troy Dawson e383244cf4 RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/mcelog#84e243c4ebb65cb378bb61bd6436ea9db1a989cc
2020-10-20 07:24:36 -07:00

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