diff options
3 files changed, 9 insertions, 1 deletions
diff --git a/meta-phosphor/common/recipes-phosphor/obmc-phosphor-event/files/eventd.conf b/meta-phosphor/common/recipes-phosphor/obmc-phosphor-event/files/eventd.conf new file mode 100644 index 000000000..b50dfbcea --- /dev/null +++ b/meta-phosphor/common/recipes-phosphor/obmc-phosphor-event/files/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/obmc-phosphor-event/files/obmc-phosphor-event.service b/meta-phosphor/common/recipes-phosphor/obmc-phosphor-event/files/obmc-phosphor-event.service index 065cc555b..a93fce054 100644 --- a/meta-phosphor/common/recipes-phosphor/obmc-phosphor-event/files/obmc-phosphor-event.service +++ b/meta-phosphor/common/recipes-phosphor/obmc-phosphor-event/files/obmc-phosphor-event.service @@ -2,8 +2,9 @@ Description=Phosphor OpenBMC event management daemon [Service] +EnvironmentFile=-/etc/default/eventd/eventd.conf Restart=always -ExecStart=/usr/sbin/obmc-phosphor-eventd -s 200000 -t 128 +ExecStart=/usr/sbin/obmc-phosphor-eventd $OPTIONS [Install] WantedBy=multi-user.target diff --git a/meta-phosphor/common/recipes-phosphor/obmc-phosphor-event/obmc-phosphor-event.bb b/meta-phosphor/common/recipes-phosphor/obmc-phosphor-event/obmc-phosphor-event.bb index eeb4a79e5..2ab7ce5f0 100644 --- a/meta-phosphor/common/recipes-phosphor/obmc-phosphor-event/obmc-phosphor-event.bb +++ b/meta-phosphor/common/recipes-phosphor/obmc-phosphor-event/obmc-phosphor-event.bb @@ -12,6 +12,7 @@ inherit obmc-phosphor-c-daemon TARGET_CPPFLAGS += "-std=c++11 -fpic" SRC_URI += "git://github.com/openbmc/phosphor-event" +SRC_URI += "file://eventd.conf" SRCREV = "4dad23916e69d55d692eca7389d67eb023c5ca66" @@ -26,4 +27,6 @@ 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 } |

