summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaptor Engineering Development Team <support@raptorengineering.com>2018-01-20 01:50:01 -0600
committerRaptor Engineering Development Team <support@raptorengineering.com>2018-01-20 04:54:56 -0600
commiteaa4dd80eebf51c371890a2b495a01f8b012187c (patch)
treeb303a0a0d36783cd7aa9da95cb5aa333e1181a61
parent5e357cd809a566fae09baf0e43511b05e2ff20b9 (diff)
downloadtalos-openbmc-eaa4dd80eebf51c371890a2b495a01f8b012187c.tar.gz
talos-openbmc-eaa4dd80eebf51c371890a2b495a01f8b012187c.zip
Add IPL monitor LED service
-rw-r--r--meta-phosphor/common/recipes-phosphor/system/obmc-ipl-status-led-monitor.bb23
-rw-r--r--meta-phosphor/common/recipes-phosphor/system/obmc-ipl-status-led-monitor/org.openbmc.status.IPLLED.service15
2 files changed, 38 insertions, 0 deletions
diff --git a/meta-phosphor/common/recipes-phosphor/system/obmc-ipl-status-led-monitor.bb b/meta-phosphor/common/recipes-phosphor/system/obmc-ipl-status-led-monitor.bb
new file mode 100644
index 000000000..cf4520368
--- /dev/null
+++ b/meta-phosphor/common/recipes-phosphor/system/obmc-ipl-status-led-monitor.bb
@@ -0,0 +1,23 @@
+SUMMARY = "OpenBMC IPL status LED monitor"
+DESCRIPTION = "OpenBMC IPL status LED monitor."
+PR = "r1"
+
+inherit skeleton-python
+inherit obmc-phosphor-dbus-service
+
+VIRTUAL-RUNTIME_skeleton_workbook ?= ""
+
+RDEPENDS_${PN} += "\
+ python-dbus \
+ python-json \
+ python-subprocess \
+ python-pygobject \
+ pyphosphor \
+ pyphosphor-dbus \
+ ${VIRTUAL-RUNTIME_skeleton_workbook} \
+ obmc-ipl-status-observer \
+ "
+
+SKELETON_DIR = "pyiplledmonitor"
+
+DBUS_SERVICE_${PN} += "org.openbmc.status.IPLLED.service"
diff --git a/meta-phosphor/common/recipes-phosphor/system/obmc-ipl-status-led-monitor/org.openbmc.status.IPLLED.service b/meta-phosphor/common/recipes-phosphor/system/obmc-ipl-status-led-monitor/org.openbmc.status.IPLLED.service
new file mode 100644
index 000000000..2385a8877
--- /dev/null
+++ b/meta-phosphor/common/recipes-phosphor/system/obmc-ipl-status-led-monitor/org.openbmc.status.IPLLED.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=Phoshpor IPL Status LED Monitor
+Wants=org.openbmc.status.IPL.service
+After=org.openbmc.status.IPL.service
+
+[Service]
+Restart=always
+ExecStart=/usr/bin/env ipl_status_led_monitor.py
+SyslogIdentifier=ipl_status_led_monitor.py
+Type=dbus
+BusName={BUSNAME}
+Environment="PYTHONUNBUFFERED=1"
+
+[Install]
+WantedBy={SYSTEMD_DEFAULT_TARGET}
OpenPOWER on IntegriCloud