Files
OpenBMC/meta-ampere/meta-common/recipes-ampere/platform/ampere-fault-monitor/ampere-check-gpio-fault@.service
T

13 lines
460 B
Desktop File
Raw Normal View History

2026-04-23 17:07:55 +08:00
[Unit]
Description=Monitor GPIO fault and updade fault LED status %i
Before=obmc-host-start-pre@0.target
After=obmc-host-already-on@0.target
Conflicts=obmc-host-stop@0.target
[Service]
Restart=no
ExecStart=/bin/sh -c "if [ -f /usr/sbin/ampere_check_gpio_fault.sh ]; then /usr/sbin/ampere_check_gpio_fault.sh %i; fi"
ExecStopPost=/bin/sh -c "if [ -f /tmp/gpio_fault ]; then sleep 5; rm /tmp/gpio_fault; fi"
SyslogIdentifier=ampere_check_fault_gpio
Type=simple