diff options
author | Andrew Geissler <andrewg@us.ibm.com> | 2017-05-08 23:58:01 +0300 |
---|---|---|
committer | Andrew Geissler <andrewg@us.ibm.com> | 2017-05-10 01:37:14 +0300 |
commit | b1afecc2797d06e1e54094b72c5f2586be73bbdd (patch) | |
tree | 85f0703dbbb53144206deff4bc420f6aa2e89c34 /meta-phosphor/common/recipes-phosphor/state/files | |
parent | 293354516d1a6b508ccd403c94a82ad89adf9b66 (diff) | |
download | openbmc-b1afecc2797d06e1e54094b72c5f2586be73bbdd.tar.xz |
Add phosphor-host-check and required host services
This application and services will be used by the host reset service
to determine if the host is running after a BMC has been rebooted
Change-Id: I8299546b0f275ebbb46aa775ab7b0633cc3fd5e0
Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
Diffstat (limited to 'meta-phosphor/common/recipes-phosphor/state/files')
-rw-r--r-- | meta-phosphor/common/recipes-phosphor/state/files/phosphor-reset-host-check@.service | 19 | ||||
-rw-r--r-- | meta-phosphor/common/recipes-phosphor/state/files/phosphor-reset-host-running@.service | 14 |
2 files changed, 33 insertions, 0 deletions
diff --git a/meta-phosphor/common/recipes-phosphor/state/files/phosphor-reset-host-check@.service b/meta-phosphor/common/recipes-phosphor/state/files/phosphor-reset-host-check@.service new file mode 100644 index 0000000000..ba4f0c0987 --- /dev/null +++ b/meta-phosphor/common/recipes-phosphor/state/files/phosphor-reset-host-check@.service @@ -0,0 +1,19 @@ +[Unit] +Description=Check Host%i status on BMC reset +Wants=mapper-wait@-xyz-openbmc_project-control-host%i.service +After=mapper-wait@-xyz-openbmc_project-control-host%i.service +Wants=obmc-host-reset-running@%i.target +Before=obmc-host-reset-running@%i.target +Wants=op-reset-chassis-on@%i.service +After=op-reset-chassis-on@%i.service +Conflicts=obmc-host-shutdown@%i.target +ConditionPathExists=/run/openbmc/chassis@%i-on + +[Service] +RemainAfterExit=yes +Type=oneshot +ExecStart=/usr/sbin/phosphor-host-check + + +[Install] +WantedBy=obmc-host-reset@%i.target diff --git a/meta-phosphor/common/recipes-phosphor/state/files/phosphor-reset-host-running@.service b/meta-phosphor/common/recipes-phosphor/state/files/phosphor-reset-host-running@.service new file mode 100644 index 0000000000..9a6ffe60b9 --- /dev/null +++ b/meta-phosphor/common/recipes-phosphor/state/files/phosphor-reset-host-running@.service @@ -0,0 +1,14 @@ +[Unit] +Description=Start host%i running after BMC reset +After=obmc-host-reset-running@%i.target +Requires=obmc-host-reset-running@%i.target +ConditionPathExists=/run/openbmc/host@%i-on + +[Service] +RemainAfterExit=no +# TODO: openbmc/openbmc#1205 - target name refactor +ExecStart=/bin/systemctl start obmc-host-start@%i.target + + +[Install] +WantedBy=obmc-host-reset@%i.target |