[PATCH openbmc] Limit size of event log db
Manjunath A Kumatagi
mkumatag at in.ibm.com
Thu Mar 24 14:42:38 AEDT 2016
see inline
"openbmc" <openbmc-bounces+mkumatag=in.ibm.com at lists.ozlabs.org> wrote on
03/23/2016 02:50:41 AM:
> From: OpenBMC Patches <openbmc-patches at stwcx.xyz>
> To: openbmc at lists.ozlabs.org
> Date: 03/23/2016 02:51 AM
> Subject: [PATCH openbmc] Limit size of event log db
> Sent by: "openbmc" <openbmc-bounces+mkumatag=in.ibm.com at lists.ozlabs.org>
>
> From: Adriana Kobylak <anoo at us.ibm.com>
>
> The event log process now supports an argument to specify the max
> size of the event log db. Set this size to a default of 200kB.
>
> Signed-off-by: Adriana Kobylak <anoo at us.ibm.com>
> ---
> .../obmc-phosphor-event/files/obmc-phosphor-event.service |
2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> 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 8e0266b..828cb6a 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,7 +2,7 @@
> Description=Phosphor OpenBMC event management daemon
>
> [Service]
> -ExecStart=/usr/sbin/obmc-phosphor-eventd
> +ExecStart=/usr/sbin/obmc-phosphor-eventd -s 200000
IMO we should use EnvironmentFile entry under the service section and read
the option from that file instead of hardcoding the value directly. This
option will even help to change the value runtime and test it.
Reference -
http://fedoraproject.org/wiki/Packaging:Systemd#EnvironmentFiles_and_support_for_.2Fetc.2Fsysconfig_files
>
> [Install]
> WantedBy=multi-user.target
> --
> 2.7.1
>
>
> _______________________________________________
> openbmc mailing list
> openbmc at lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/openbmc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20160324/5f0bb1ce/attachment.html>
More information about the openbmc
mailing list