debug-trigger: Do what we can to debug unresponsive systems
debug-trigger is a small daemon which translates an external signal that
the system is unresponsive into a system crash for debug data
collection.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: Ic04f1a95aaf651d56b75f5261d8a6f76d34477a7
diff --git a/systemd/system/debug-trigger@.service b/systemd/system/debug-trigger@.service
new file mode 100644
index 0000000..b9ec40e
--- /dev/null
+++ b/systemd/system/debug-trigger@.service
@@ -0,0 +1,6 @@
+[Unit]
+Description=BMC Debug Trigger
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/debug-trigger /%I /proc/sysrq-trigger