OSDN Git Service

New service: mcelog.
authormobinmob <mobinmob@disroot.org>
Fri, 14 May 2021 15:12:28 +0000 (18:12 +0300)
committermobinmob <mobinmob@disroot.org>
Fri, 14 May 2021 15:12:28 +0000 (18:12 +0300)
usr/share/66/service/mcelog [new file with mode: 0644]

diff --git a/usr/share/66/service/mcelog b/usr/share/66/service/mcelog
new file mode 100644 (file)
index 0000000..3316694
--- /dev/null
@@ -0,0 +1,13 @@
+[main]
+@type = classic
+@version = 0.0.1
+@description = "decode kernel machine check log"
+@user = ( root )
+
+[start]
+@execute = ( execl-cmdline -s { mcelog --daemon --foreground ${cmd_args} } )
+
+[environment]
+# To log on syslog replace the the --logfile with --syslog = yes. The voidlinux
+# service script uses the later. Please consult mcelog(8) for more options.
+cmd_args=!--logfile = /dev/stderr