[PATCH openbmc 7/9] Add recipe for host IPMI DBUS to BT

Brad Bishop brad at bwbmail.net
Tue Oct 20 11:45:49 AEDT 2015


Yes.  I think its just a matter of adding Wants=foo.service.

I also just noticed that there is a service type that can be set to dbus.  It probably makes sense to use that (along with BusName).

> On Oct 19, 2015, at 7:01 PM, Patrick Williams <patrick at stwcx.xyz> wrote:
> 
> On Mon, Oct 19, 2015 at 07:56:43AM -0500, OpenBMC Patches wrote:
>> From: Brad Bishop <bradleyb at us.ibm.com>
>> 
>> ---
>> .../common/recipes-phosphor/host-ipmid/host-ipmi-bt.bb  | 17 +++++++++++++++++
>> .../host-ipmid/host-ipmi-bt/host-ipmi-bt.service        |  8 ++++++++
>> 2 files changed, 25 insertions(+)
>> create mode 100644 meta-phosphor/common/recipes-phosphor/host-ipmid/host-ipmi-bt.bb
>> create mode 100644 meta-phosphor/common/recipes-phosphor/host-ipmid/host-ipmi-bt/host-ipmi-bt.service
>> 
>> diff --git a/meta-phosphor/common/recipes-phosphor/host-ipmid/host-ipmi-bt.bb b/meta-phosphor/common/recipes-phosphor/host-ipmid/host-ipmi-bt.bb
>> new file mode 100644
>> index 0000000..830f754
>> --- /dev/null
>> +++ b/meta-phosphor/common/recipes-phosphor/host-ipmid/host-ipmi-bt.bb
>> @@ -0,0 +1,17 @@
>> +SUMMARY = "Phosphor OpenBMC BT to DBUS"
>> +DESCRIPTION = "Phosphor OpenBMC BT to DBUS."
>> +PR = "r1"
>> +
>> +RDEPENDS_${PN} += "python-subprocess"
>> +
>> +SYSTEMD_SERVICE_${PN} = "host-ipmi-bt.service"
>> +
>> +inherit obmc-phosphor-pydbus-service
>> +inherit obmc-phosphor-host-ipmi-hw
>> +
>> +S = "${WORKDIR}/git"
>> +SRC_URI += "git://github.com/openbmc/skeleton.git;subpath=bin;destsuffix=git"
>> +SRCREV="${AUTOREV}"
>> +
>> +SCRIPT_NAME = "ipmid.py"
>> +INSTALL_NAME = "host-ipmi-bt"
>> diff --git a/meta-phosphor/common/recipes-phosphor/host-ipmid/host-ipmi-bt/host-ipmi-bt.service b/meta-phosphor/common/recipes-phosphor/host-ipmid/host-ipmi-bt/host-ipmi-bt.service
>> new file mode 100644
>> index 0000000..dfc0416
>> --- /dev/null
>> +++ b/meta-phosphor/common/recipes-phosphor/host-ipmid/host-ipmi-bt/host-ipmi-bt.service
>> @@ -0,0 +1,8 @@
>> +[Unit]
>> +Description=Phosphor OpenBMC BT to DBUS 
>> +
>> +[Service]
>> +ExecStart=/usr/sbin/host-ipmi-bt
>> +
>> +[Install]
>> +WantedBy=multi-user.target
>> -- 
>> 2.6.0
>> 
>> 
>> _______________________________________________
>> openbmc mailing list
>> openbmc at lists.ozlabs.org
>> https://lists.ozlabs.org/listinfo/openbmc
> 
> Do we need to start specifying the dbus object provide / require
> statements in the systemd service files?  The two IPMI processes are
> tied together by the objects being provided and I don't think there is
> anything here to show that dependency relationship.
> 
> -- 
> Patrick Williams
> _______________________________________________
> openbmc mailing list
> openbmc at lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/openbmc


More information about the openbmc mailing list