commit | b229e651ca0d154d44640f023873c27ceafbe840 | [log] [tgz] |
---|---|---|
author | Potin Lai <potin.lai@quantatw.com> | Fri Oct 27 09:54:09 2023 +0800 |
committer | Patrick Williams <patrick@stwcx.xyz> | Thu Nov 30 03:47:32 2023 +0000 |
tree | 4cad9e62333ed6aaebeea6525930ed22d7a22b23 | |
parent | 07acadbe16f60b9bcdcddd11ace86c3f67d764ea [diff] |
meta-bletchley: fix host power retore AlwaysOn fail We notice the `start-limit-hit` error message in both chassis-poweron@.service and phosphor-discover-system-state@.service. Change restart to start phosphor-discover-system-state@.service and add `Conflicts` to deactive phosphor-discover-system-state@.service when calling chassis-poweroff@.service. Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I0bb11ba81cf699f75597a49fb259372a51899a86
diff --git a/meta-facebook/meta-bletchley/recipes-phosphor/state/phosphor-state-manager/chassis-poweroff@.service b/meta-facebook/meta-bletchley/recipes-phosphor/state/phosphor-state-manager/chassis-poweroff@.service index 7deff9a..f9c7701 100644 --- a/meta-facebook/meta-bletchley/recipes-phosphor/state/phosphor-state-manager/chassis-poweroff@.service +++ b/meta-facebook/meta-bletchley/recipes-phosphor/state/phosphor-state-manager/chassis-poweroff@.service
@@ -1,9 +1,11 @@ [Unit] Description=Turn off AC at Sled%i Conflicts=chassis-poweron@%i.service +Conflicts=phosphor-discover-system-state@%i.service After=host-poweroff@%i.service [Service] Type=oneshot ExecStart=/usr/sbin/power-ctrl sled%i ac-off SyslogIdentifier=power-ctrl +StartLimitBurst=0 \ No newline at end of file
diff --git a/meta-facebook/meta-bletchley/recipes-phosphor/state/phosphor-state-manager/chassis-poweron@.service b/meta-facebook/meta-bletchley/recipes-phosphor/state/phosphor-state-manager/chassis-poweron@.service index 2f5f67b..d58ebf0 100644 --- a/meta-facebook/meta-bletchley/recipes-phosphor/state/phosphor-state-manager/chassis-poweron@.service +++ b/meta-facebook/meta-bletchley/recipes-phosphor/state/phosphor-state-manager/chassis-poweron@.service
@@ -8,7 +8,8 @@ Type=oneshot ExecStart=/usr/sbin/power-ctrl sled%i ac-on SyslogIdentifier=power-ctrl -ExecStartPost=/bin/systemctl restart phosphor-discover-system-state@%i.service +ExecStartPost=/bin/systemctl start phosphor-discover-system-state@%i.service +StartLimitBurst=0 [Install] WantedBy=multi-user.target