summaryrefslogtreecommitdiff
path: root/community/mcelog/mcelog.service
diff options
context:
space:
mode:
Diffstat (limited to 'community/mcelog/mcelog.service')
-rw-r--r--community/mcelog/mcelog.service17
1 files changed, 17 insertions, 0 deletions
diff --git a/community/mcelog/mcelog.service b/community/mcelog/mcelog.service
new file mode 100644
index 000000000..62d8cbed0
--- /dev/null
+++ b/community/mcelog/mcelog.service
@@ -0,0 +1,17 @@
+[Unit]
+Description=Machine Check Exception Logging Daemon
+After=syslog.target
+
+# FIXME - due to upstream kernel bug always start the mcelog process
+# twice using the following ExecStartPre hack. This needs fixing.
+# There is a bug filed against systemd for the ExecStartPre bit
+# since it is not possible to specify that the ExecStarPre bit
+# is allowed and expected to fail without aborting the daemon.
+
+[Service]
+ExecStartPre=/etc/mcelog/mcelog.setup
+ExecStart=/usr/sbin/mcelog --ignorenodev --daemon --foreground
+StandardOutput=syslog
+
+[Install]
+WantedBy=multi-user.target