summaryrefslogtreecommitdiffstats
path: root/meta-phosphor/common/recipes-core/systemd
diff options
context:
space:
mode:
authorAndrew Geissler <andrewg@us.ibm.com>2017-01-23 14:14:02 -0600
committerPatrick Williams <patrick@stwcx.xyz>2017-02-01 19:44:57 +0000
commit3969c0c32ca24af6d3608e90aeee6d04636772c2 (patch)
treed58a150271f26389a55dabc47b95ec3e71ea0b9c /meta-phosphor/common/recipes-core/systemd
parent952ce27ea28a4bf47c3deffbb7525b634b964892 (diff)
downloadtalos-openbmc-3969c0c32ca24af6d3608e90aeee6d04636772c2.tar.gz
talos-openbmc-3969c0c32ca24af6d3608e90aeee6d04636772c2.zip
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/systemd')
-rw-r--r--meta-phosphor/common/recipes-core/systemd/obmc-targets/obmc-power-chassis-off@.target8
-rw-r--r--meta-phosphor/common/recipes-core/systemd/obmc-targets/obmc-power-chassis-on@.target8
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
OpenPOWER on IntegriCloud