diff options
author | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2017-01-26 08:54:07 -0500 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2017-02-09 17:10:08 +0000 |
commit | 4814d4b4824977a2243c8135f19bbec6bbfe809d (patch) | |
tree | b3cba858835366772319dae6840c13b418c69303 /meta-phosphor/common/recipes-phosphor/logging | |
parent | 049b6655574e262e1ae98d72095fceb0ced5e777 (diff) | |
download | talos-openbmc-4814d4b4824977a2243c8135f19bbec6bbfe809d.tar.gz talos-openbmc-4814d4b4824977a2243c8135f19bbec6bbfe809d.zip |
Move events directory contents to logging
Change-Id: Ica1c0fac71de409fb1fb501a1d4e5a2857ed4c7e
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'meta-phosphor/common/recipes-phosphor/logging')
4 files changed, 45 insertions, 0 deletions
diff --git a/meta-phosphor/common/recipes-phosphor/logging/obmc-phosphor-event.bb b/meta-phosphor/common/recipes-phosphor/logging/obmc-phosphor-event.bb new file mode 100644 index 000000000..5a436b3a6 --- /dev/null +++ b/meta-phosphor/common/recipes-phosphor/logging/obmc-phosphor-event.bb @@ -0,0 +1,25 @@ +SUMMARY = "Phosphor OpenBMC Event Management" +DESCRIPTION = "Phosphor OpenBMC event management reference implementation." +HOMEPAGE = "https://github.com/openbmc/phosphor-event" +PR = "r1" + +inherit autotools pkgconfig +inherit obmc-phosphor-license +inherit obmc-phosphor-dbus-service + +DEPENDS += "systemd" +DEPENDS += "autoconf-archive-native" +PROVIDES += "virtual/obmc-event-mgmt" +RPROVIDES_${PN} += "virtual-obmc-event-mgmt" + +SRC_URI += "git://github.com/openbmc/phosphor-event" +SRCREV = "74c0963269a6828c42d282b97bffa1afafc1b7d0" + +DBUS_SERVICE_${PN} = "org.openbmc.records.events.service" +SYSTEMD_ENVIRONMENT_FILE_${PN} += "obmc/eventd/eventd.conf" + +S = "${WORKDIR}/git" + +do_install_append() { + install -d ${D}/var/lib/obmc/events/ +} diff --git a/meta-phosphor/common/recipes-phosphor/logging/obmc-phosphor-event/eventd.conf b/meta-phosphor/common/recipes-phosphor/logging/obmc-phosphor-event/eventd.conf new file mode 100644 index 000000000..b50dfbcea --- /dev/null +++ b/meta-phosphor/common/recipes-phosphor/logging/obmc-phosphor-event/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/logging/obmc-phosphor-event/obmc/eventd/eventd.conf b/meta-phosphor/common/recipes-phosphor/logging/obmc-phosphor-event/obmc/eventd/eventd.conf new file mode 100644 index 000000000..b50dfbcea --- /dev/null +++ b/meta-phosphor/common/recipes-phosphor/logging/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/logging/obmc-phosphor-event/org.openbmc.records.events.service b/meta-phosphor/common/recipes-phosphor/logging/obmc-phosphor-event/org.openbmc.records.events.service new file mode 100644 index 000000000..2af01363b --- /dev/null +++ b/meta-phosphor/common/recipes-phosphor/logging/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} |