-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LEDS: Add systemd unit to call clear-all-faults.sh
clear-all-faults.sh needs to be called with "true" - List all the inventory D-Bus objects implementing xyz.openbmc_project.State.Decorator.OperationalStatus - For each of those : set Functional property to true Call those as part of below transitions - BMC booting to standby and staying at standby - BMC starting to power on Signed-off-by: Lakshminarayana R. Kammath <lkammath@in.ibm.com>
- Loading branch information
Showing
3 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
.../recipes-phosphor/inventory/phosphor-inventory-manager/obmc-clear-all-fault-leds@.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[Unit] | ||
Description=Clears all fault LED to %i | ||
After=obmc-chassis-powerreset@0.target | ||
Wants=obmc-power-reset-on@0.target | ||
After=obmc-power-reset-on@0.target | ||
ConditionPathExists=!/run/openbmc/chassis@0-on | ||
|
||
[Service] | ||
Type=oneshot | ||
Restart=no | ||
EnvironmentFile={envfiledir}/obmc/led/clear-all/faults/config | ||
ExecStart=/bin/bash -c "clear-all-fault-leds.sh %i ${{EXCLUDED_GROUPS}}" | ||
SyslogIdentifier=obmc-clear-all-fault-leds | ||
|
1 change: 1 addition & 0 deletions
1
...bm/recipes-phosphor/inventory/phosphor-inventory-manager/obmc/led/clear-all/faults/config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
EXCLUDED_GROUPS=bmc_booted power_on _fault |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters