summaryrefslogtreecommitdiff
path: root/meta-phosphor/common/recipes-phosphor/state/files
diff options
context:
space:
mode:
authorMichael Tritz <mtritz@us.ibm.com>2017-03-31 20:04:32 +0300
committerPatrick Williams <patrick@stwcx.xyz>2017-05-06 01:45:08 +0300
commitb3b5899fc47fdac6d3959051ebb223335909408a (patch)
treeb378775b802822d97a64fb5b9d360632767966b8 /meta-phosphor/common/recipes-phosphor/state/files
parent176cadafcbc0dd6a69a58185b97db76ec68387fd (diff)
downloadopenbmc-b3b5899fc47fdac6d3959051ebb223335909408a.tar.xz
Recipe for phosphor-discover-system-state
This recipe will add the new program phosphor-discover-system-state to new builds. Additionally, the old Python state manager is removed from the build since discover_system_state.py was the last thing in it. Resolves openbmc/openbmc#773 Change-Id: I99ba0f1f0264cedebc5a9a7e5fa5dbaba0b79502 Signed-off-by: Michael Tritz <mtritz@us.ibm.com>
Diffstat (limited to 'meta-phosphor/common/recipes-phosphor/state/files')
-rw-r--r--meta-phosphor/common/recipes-phosphor/state/files/phosphor-discover-system-state@.service16
1 files changed, 16 insertions, 0 deletions
diff --git a/meta-phosphor/common/recipes-phosphor/state/files/phosphor-discover-system-state@.service b/meta-phosphor/common/recipes-phosphor/state/files/phosphor-discover-system-state@.service
new file mode 100644
index 0000000000..325e8dcc13
--- /dev/null
+++ b/meta-phosphor/common/recipes-phosphor/state/files/phosphor-discover-system-state@.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=Reboot If Enabled
+Wants=mapper-wait@-org-openbmc-settings-host%i.service
+After=mapper-wait@-org-openbmc-settings-host%i.service
+Wants=mapper-wait@-xyz-openbmc_project-state-host%i.service
+After=mapper-wait@-xyz-openbmc_project-state-host%i.service
+Wants=mapper-wait@-xyz-openbmc_project-state-chassis%i.service
+After=mapper-wait@-xyz-openbmc_project-state-chassis%i.service
+
+[Service]
+Restart=no
+Type=oneshot
+ExecStart={sbindir}/phosphor-discover-system-state --host %i
+
+[Install]
+WantedBy={SYSTEMD_DEFAULT_TARGET}