]> git.pld-linux.org Git - packages/mcelog.git/commitdiff
- add upstart config
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 5 Oct 2011 15:02:43 +0000 (15:02 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
currently mcelog does not work for me so not tested

Changed files:
    mcelog.upstart -> 1.1

mcelog.upstart [new file with mode: 0644]

diff --git a/mcelog.upstart b/mcelog.upstart
new file mode 100644 (file)
index 0000000..bff3fbe
--- /dev/null
@@ -0,0 +1,30 @@
+description "mcelog logs and handles CPU hardware errors on x86 systems."
+
+start on pld.sysinit-done and started SERVICE_syslog=y
+stop on pld.shutdown-started
+console output
+
+# mcelog mode
+# valid values: daemon, trigger, cron
+# Recommended value daemon
+env MCELOG_MODE="daemon"
+
+# additional options to pass to the daemon
+# this only works in daemon mode
+# see the manpage for details. settings can be also
+# set in /etc/mcelog.conf
+env MCELOG_OPTIONS=""
+
+pre-start script
+       # needs mcelog device support
+       modprobe mcelog || :
+       test -c /dev/mcelog
+
+       # this snippet runs only in daemon mode
+       if [ "$MCELOG_MODE" != daemon ]; then
+               exit 1
+       fi
+end script
+
+console output
+exec /usr/sbin/mcelog --foreground --daemon $MCELOG_OPTIONS
This page took 0.132547 seconds and 4 git commands to generate.