[yocto] How to add a textline to the busybox-syslog syslog.conf?

Khem Raj raj.khem at gmail.com
Thu Aug 25 10:08:35 PDT 2016


> On Aug 25, 2016, at 3:58 AM, S.Jaritz at esa-grimma.de wrote:
> 
> Hej ho
> 
> I have an app that is using syslog. For it I like to set the amount of log data.
> 
> I am using the std. yocto(krogoth) together with the std. meta-atmel layer. This layers are installing the "busybox-syslog"-package. This comes with the "/etc/syslog.conf" file.
> 
> My question is: How to append the syslog.conf with a line like "myApp,auth.notice /var/log/messages" out of a recipe?

you can write a bbappend for busybox recipe in your own layer and add do_install_append there



> 
> My idea of the dummy recipe looks like:
> ######## myApp.bb ########
> SUMMARY = "myApp"
> SECTION = "demo"
> LICENSE = "GPL"
> 
> inherit cmake
> 
> DEPENDS = "busybox-syslog"
> 
> SRC_URI = "gitsm://mygit/myApp.git;protocol=http;branch=develop"
> 
> PV = "1.0.0"
> 
> S = "${WORKDIR}/git/"
> 
> BBCLASSEXTEND = "native nativesdk"
> 
> do_install_append() {
>         echo 'myApp.*        /var/log/messages' >> /etc/syslog.conf
> }
> #########################
> 
> Any ideas how to do it in a nice way?
> 
> Regards!
> 
> Stefan Jaritz
> 
> ------------------------------------------------------------
> ESA Elektroschaltanlagen Grimma GmbH
> Broner Ring 30
> 04668 Grimma
> Telefon: +49 3437 9211 176
> Telefax: +49 3437 9211 26
> E-Mail: s.jaritz at esa-grimma.de
> Internet: www.esa-grimma.de <x-msg://18/www.esa-grimma.de>
> 
> 
> Geschäftsführer:
> Dipl.-Ing. Jörg Gaitzsch
> Jörg Reinker
> 
> Sitz der Gesellschaft: Grimma
> Ust.-ID: DE 141784437
> Amtsgericht: Leipzig, HRB 5159
> Steuernummer: 238/108/00755
> 
> 
> Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen.
> Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten
> haben, informieren Sie bitte sofort den Absender und löschen Sie diese
> Nachricht. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail
> ist nicht gestattet.
> 
> This e-mail may contain confidential and/or privileged information. If you are
> not the intended recipient (or have received this e-mail in error) please
> notify the sender immediately and destroy this e-mail. Any unauthorized
> copying, disclosure or distribution of the material in this e-mail is strictly
> forbidden.--
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160825/51cac30b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 204 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160825/51cac30b/attachment.pgp>


More information about the yocto mailing list