diff options
author | Andrew Geissler <andrewg@us.ibm.com> | 2017-01-23 23:14:02 +0300 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2017-02-01 22:44:57 +0300 |
commit | 3969c0c32ca24af6d3608e90aeee6d04636772c2 (patch) | |
tree | d58a150271f26389a55dabc47b95ec3e71ea0b9c /meta-phosphor/common/recipes-core | |
parent | 952ce27ea28a4bf47c3deffbb7525b634b964892 (diff) | |
download | openbmc-3969c0c32ca24af6d3608e90aeee6d04636772c2.tar.xz |
Add chassis power off and on targets
These targets will allow the user to power on/off the
chassis without booting the host
Change-Id: I3f75a7b7827224467703bfb8c305cbb43fb83547
Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
Diffstat (limited to 'meta-phosphor/common/recipes-core')
-rw-r--r-- | meta-phosphor/common/recipes-core/systemd/obmc-targets/obmc-power-chassis-off@.target | 8 | ||||
-rw-r--r-- | meta-phosphor/common/recipes-core/systemd/obmc-targets/obmc-power-chassis-on@.target | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/meta-phosphor/common/recipes-core/systemd/obmc-targets/obmc-power-chassis-off@.target b/meta-phosphor/common/recipes-core/systemd/obmc-targets/obmc-power-chassis-off@.target new file mode 100644 index 000000000..b3c825616 --- /dev/null +++ b/meta-phosphor/common/recipes-core/systemd/obmc-targets/obmc-power-chassis-off@.target @@ -0,0 +1,8 @@ +[Unit] +Description=Chassis%i (Power Off) +Wants={SYSTEMD_DEFAULT_TARGET} +After={SYSTEMD_DEFAULT_TARGET} +Wants=mapper-wait@-xyz-openbmc_project-state-chassis%i.service +After=mapper-wait@-xyz-openbmc_project-state-chassis%i.service +Conflicts=obmc-power-chassis-on@%i.target +RefuseManualStop=yes diff --git a/meta-phosphor/common/recipes-core/systemd/obmc-targets/obmc-power-chassis-on@.target b/meta-phosphor/common/recipes-core/systemd/obmc-targets/obmc-power-chassis-on@.target new file mode 100644 index 000000000..f9571b15e --- /dev/null +++ b/meta-phosphor/common/recipes-core/systemd/obmc-targets/obmc-power-chassis-on@.target @@ -0,0 +1,8 @@ +[Unit] +Description=Chassis%i (Power On) +Wants={SYSTEMD_DEFAULT_TARGET} +After={SYSTEMD_DEFAULT_TARGET} +Wants=mapper-wait@-xyz-openbmc_project-state-chassis%i.service +After=mapper-wait@-xyz-openbmc_project-state-chassis%i.service +Conflicts=obmc-power-chassis-off@%i.target +RefuseManualStop=yes |