From 5e357cd809a566fae09baf0e43511b05e2ff20b9 Mon Sep 17 00:00:00 2001 From: Raptor Engineering Development Team Date: Fri, 19 Jan 2018 14:11:58 -0600 Subject: Add IPL status observer --- .../system/obmc-ipl-status-observer.bb | 23 ++++++++++++++++++++++ .../org.openbmc.status.IPL.service | 15 ++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 meta-phosphor/common/recipes-phosphor/system/obmc-ipl-status-observer.bb create mode 100644 meta-phosphor/common/recipes-phosphor/system/obmc-ipl-status-observer/org.openbmc.status.IPL.service (limited to 'meta-phosphor') diff --git a/meta-phosphor/common/recipes-phosphor/system/obmc-ipl-status-observer.bb b/meta-phosphor/common/recipes-phosphor/system/obmc-ipl-status-observer.bb new file mode 100644 index 000000000..95d358e3d --- /dev/null +++ b/meta-phosphor/common/recipes-phosphor/system/obmc-ipl-status-observer.bb @@ -0,0 +1,23 @@ +SUMMARY = "OpenBMC IPL status observer" +DESCRIPTION = "OpenBMC IPL status observer." +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} \ + pdbg \ + " + +SKELETON_DIR = "pyiplobserver" + +DBUS_SERVICE_${PN} += "org.openbmc.status.IPL.service" diff --git a/meta-phosphor/common/recipes-phosphor/system/obmc-ipl-status-observer/org.openbmc.status.IPL.service b/meta-phosphor/common/recipes-phosphor/system/obmc-ipl-status-observer/org.openbmc.status.IPL.service new file mode 100644 index 000000000..a92b2f146 --- /dev/null +++ b/meta-phosphor/common/recipes-phosphor/system/obmc-ipl-status-observer/org.openbmc.status.IPL.service @@ -0,0 +1,15 @@ +[Unit] +Description=Phoshpor IPL Status Observer +Wants=xyz.openbmc_project.State.Host.service +After=xyz.openbmc_project.State.Host.service + +[Service] +Restart=always +ExecStart=/usr/bin/env ipl_status_observer.py +SyslogIdentifier=ipl_status_observer.py +Type=dbus +BusName={BUSNAME} +Environment="PYTHONUNBUFFERED=1" + +[Install] +WantedBy={SYSTEMD_DEFAULT_TARGET} -- cgit v1.2.1