[patch] Add logrotate support

Jim Meyering jim at meyering.net
Fri Jul 8 20:26:57 UTC 2011


Justin Clift wrote:
> On 08/07/2011, at 2:34 PM, Pete Zaitcev wrote:
>> Logfile of iwhd grows quite quickly, especially if someone adds -v.
>> I saw 100 GB log at one of test machines. We need to rotate them.
>> For that, the daemon has to be able to reopen the log, which is not
>> possible if it simply dumps everything to standard error. An ideal
>> ipproach would be to have all messages printed through a logging
>> facility. However, that requires a lot of patching, and there is a
>> question of what to do with library output (if any). This patch
>> offers a stop-gap solution, where we add a log rotation facility
>> of our own standard error.
>
> That's weird.  It's been documented as logging to:
>
>   /var/log/iwhd.log

That is accurate.

> on the main Aeolus website for a while:
>
>   http://www.aeolusproject.org/log_files.html#iwhd
>
> Does that mean the website has been incorrect so far, but
> will be correct once these patches are in?

No change in the log path.
The difference is that now logs are rotatable (and rotated by default).


More information about the iwhd-devel mailing list