diag-mode: create new diagnostic mode target
This target will be used when the host is collecting diagnostic data. In
most cases this data is to help debug a failure of some sort in the host
subsystem.
phosphor-state-manager will track the entry and exit of this target
within its xyz.openbmc_project.State.Host D-Bus object. It will
correlate to "xyz.openbmc_project.State.Host.HostState.DiagnosticMode"
This target will be driven by other software components which are
communicating with the host and coordinating the diagnostics so the
target itself will have minimal services within it.
The CurrentHostState property within xyz.openbmc_project.State.Host will
be mapped to the InTest state within Redfish when this target is
running. The expectation is the target is only active when the host is
actively collecting diagnostic data.
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Change-Id: Iee2f851875f4b029c16d54a5d0ded50953ca4cfb
diff --git a/target_files/obmc-host-diagnostic-mode@.target b/target_files/obmc-host-diagnostic-mode@.target
new file mode 100644
index 0000000..27f07b6
--- /dev/null
+++ b/target_files/obmc-host-diagnostic-mode@.target
@@ -0,0 +1,9 @@
+[Unit]
+# This target is activated when the host is
+# collecting debug data which can be used to
+# debug a user or self detected error in the host
+Description=Diagnostic Mode Collection for Host%i
+Wants=multi-user.target
+After=multi-user.target
+Conflicts=obmc-host-startmin@%i.target
+RefuseManualStop=yes