diff options
author | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2016-08-30 15:06:19 -0400 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2016-09-13 18:08:16 +0000 |
commit | 3337d89d2a020bb6657cdc328cf307ce0b113346 (patch) | |
tree | 289ffc502b413bd5f4396a9eb1b3c0104a205285 | |
parent | 714b576661b5cba4e99ea520c621411a4eaa5d38 (diff) | |
download | talos-openbmc-3337d89d2a020bb6657cdc328cf307ce0b113346.tar.gz talos-openbmc-3337d89d2a020bb6657cdc328cf307ce0b113346.zip |
event recipe/service updates
Make use of systemd and dbus class features.
Change-Id: Ia7d15bc830af4dc5d2d5bf7d497ec3cb34361369
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
4 files changed, 20 insertions, 15 deletions
diff --git a/meta-phosphor/common/recipes-phosphor/events/obmc-phosphor-event.bb b/meta-phosphor/common/recipes-phosphor/events/obmc-phosphor-event.bb index bba2a6498..bd4d67896 100644 --- a/meta-phosphor/common/recipes-phosphor/events/obmc-phosphor-event.bb +++ b/meta-phosphor/common/recipes-phosphor/events/obmc-phosphor-event.bb @@ -6,20 +6,21 @@ PR = "r1" inherit obmc-phosphor-license inherit obmc-phosphor-event-mgmt -inherit obmc-phosphor-sdbus-service +inherit obmc-phosphor-dbus-service inherit obmc-phosphor-c-daemon TARGET_CXXFLAGS += " -std=c++11 -fpic" TARGET_CFLAGS += " -fpic" SRC_URI += "git://github.com/openbmc/phosphor-event" -SRC_URI += "file://eventd.conf" SRCREV = "059b35e1eabdd87ad02b4343692789386c134082" RDEPENDS_${PN} += "libsystemd" DEPENDS += "systemd" +DBUS_SERVICE_${PN} = "org.openbmc.records.events.service" +SYSTEMD_ENVIRONMENT_FILE_${PN} += "obmc/eventd/eventd.conf" S = "${WORKDIR}/git" INSTALL_NAME = "event_messaged" @@ -27,7 +28,5 @@ INSTALL_NAME = "event_messaged" do_install() { install -d ${D}/var/lib/obmc/events/ install -m 0755 -d ${D}${sbindir} - install -m 0755 ${S}/${INSTALL_NAME} ${D}/${sbindir}/obmc-phosphor-eventd - install -m 0755 -d ${D}${sysconfdir}/default/eventd - install -m 0644 ${WORKDIR}/eventd.conf ${D}${sysconfdir}/default/eventd/eventd.conf + install -m 0755 ${S}/${INSTALL_NAME} ${D}/${sbindir}/phosphor-eventd } diff --git a/meta-phosphor/common/recipes-phosphor/events/obmc-phosphor-event/obmc-phosphor-event.service b/meta-phosphor/common/recipes-phosphor/events/obmc-phosphor-event/obmc-phosphor-event.service deleted file mode 100644 index 696d2b1be..000000000 --- a/meta-phosphor/common/recipes-phosphor/events/obmc-phosphor-event/obmc-phosphor-event.service +++ /dev/null @@ -1,10 +0,0 @@ -[Unit] -Description=Phosphor Event Manager - -[Service] -EnvironmentFile=-/etc/default/eventd/eventd.conf -Restart=always -ExecStart={sbindir}/obmc-phosphor-eventd $OPTIONS - -[Install] -WantedBy={SYSTEMD_DEFAULT_TARGET} diff --git a/meta-phosphor/common/recipes-phosphor/events/obmc-phosphor-event/obmc/eventd/eventd.conf b/meta-phosphor/common/recipes-phosphor/events/obmc-phosphor-event/obmc/eventd/eventd.conf new file mode 100644 index 000000000..b50dfbcea --- /dev/null +++ b/meta-phosphor/common/recipes-phosphor/events/obmc-phosphor-event/obmc/eventd/eventd.conf @@ -0,0 +1,4 @@ +LOG_SIZE_LIMIT="197376" +LOG_COUNT_LIMIT="128" + +OPTIONS="-s ${LOG_SIZE_LIMIT} -t ${LOG_COUNT_LIMIT}" diff --git a/meta-phosphor/common/recipes-phosphor/events/obmc-phosphor-event/org.openbmc.records.events.service b/meta-phosphor/common/recipes-phosphor/events/obmc-phosphor-event/org.openbmc.records.events.service new file mode 100644 index 000000000..2af01363b --- /dev/null +++ b/meta-phosphor/common/recipes-phosphor/events/obmc-phosphor-event/org.openbmc.records.events.service @@ -0,0 +1,12 @@ +[Unit] +Description=Phosphor Event Manager + +[Service] +EnvironmentFile={envfiledir}/obmc/eventd/eventd.conf +Restart=always +ExecStart={sbindir}/phosphor-eventd $OPTIONS +Type=dbus +BusName={BUSNAME} + +[Install] +WantedBy={SYSTEMD_DEFAULT_TARGET} |