mcelog/mcelog.service
Jon Masters 09802bf945 mcelog: enable mcelog daemon mode, triggers, and use systemd
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>
2010-11-10 05:23:28 -05:00

18 lines
576 B
Desktop File

[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