Skip to main content

Posts

Showing posts from July, 2017

Setting Up Log Rotation in Yocto

The Yocto build platform is very powerful, with many options and the ability to quickly incorporate new packages into an embedded linux distribution via bitbake recipes. If you are building up a system for deployment, you'll find that there are several packages you'll need that may not be readily available out of the box. In my case, I am using the builder supplied by Phytec, an embedded hardware manufacturer. Their default package didn't include the system logger, which I find to be crucial for any moderately complex system. No worries, with a little effort this can be added to the system. Another key function is log management. A deployed system cannot have files which grow in size indefinitely. Logrotate is a handy utility for managing this. Installing The Syslog Plus A Log Rotation Service In my example, I'm using Arch Linux with systemd for service management. The builder toolkit comes with the rsyslog recipe. I'm appending to this recipe in my own m...