summaryrefslogtreecommitdiff
path: root/meta-facebook/meta-minerva/recipes-phosphor/state/phosphor-state-manager/chassis-powercycle@.service
diff options
context:
space:
mode:
authorYang Chen <yang.chen@quantatw.com>2024-04-18 17:31:59 +0300
committerPatrick Williams <patrick@stwcx.xyz>2024-04-20 00:06:20 +0300
commit9101a902bfc1290c43df6e57ccfda4025c8981c0 (patch)
tree45348ccca4561901088d263026fa7c71b4bfe8ae /meta-facebook/meta-minerva/recipes-phosphor/state/phosphor-state-manager/chassis-powercycle@.service
parentd60b987c45bd8b3a7ce16e2c2795a8d740cf9248 (diff)
downloadopenbmc-9101a902bfc1290c43df6e57ccfda4025c8981c0.tar.xz
meta-facebook: minerva: enable chassis power cycle
Because CMM is without any host, we use the "Chassis" of the phosphor-state-manager which the chassis0 to indicate the "CMM sled power cycle" to control the CMM board only and the chassis1 to indicate the "CMM chassis power cycle" to control the entire system including CMM, compute, and network blades. Change-Id: I17cf0f3e711b35da2d264e1f2fcb2f44d7af26d0 Signed-off-by: Yang Chen <yang.chen@quantatw.com>
Diffstat (limited to 'meta-facebook/meta-minerva/recipes-phosphor/state/phosphor-state-manager/chassis-powercycle@.service')
-rw-r--r--meta-facebook/meta-minerva/recipes-phosphor/state/phosphor-state-manager/chassis-powercycle@.service9
1 files changed, 9 insertions, 0 deletions
diff --git a/meta-facebook/meta-minerva/recipes-phosphor/state/phosphor-state-manager/chassis-powercycle@.service b/meta-facebook/meta-minerva/recipes-phosphor/state/phosphor-state-manager/chassis-powercycle@.service
new file mode 100644
index 0000000000..a8fa1e259c
--- /dev/null
+++ b/meta-facebook/meta-minerva/recipes-phosphor/state/phosphor-state-manager/chassis-powercycle@.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=Chassis%i Power Cycle
+
+[Service]
+Type=oneshot
+ExecStart=/usr/libexec/phosphor-state-manager/chassis-powercycle %i
+
+[Install]
+WantedBy=obmc-chassis-powercycle@%i.target