How to stop consolekit logging

Colin Law clanlaw at googlemail.com
Sat Nov 5 13:23:53 UTC 2011


On 4 November 2011 22:20, Nils Kassube <kassube at gmx.net> wrote:
> Colin Law wrote:
>> I am running Ubuntu on a Sheeva Plug PC on an SD card so I want to
>> minimise the amount of logging.  I have been unable to find any way
>> of stopping consolekit from logging to /var/log/ConsoleKit/history
>> or at least reducing the detail.  It gets written to every few
>> minutes and grows at about 0.5MB/day.  Google has failed me and the
>> consolekit documentation that I found said nothing about logging.
>
> I didn't try if it works but I would link /var/log/ConsoleKit/history to
> /dev/null.

Unfortunately that gives
console-kit-daemon[2216]: WARNING: Couldn't open log file
/var/log/ConsoleKit/history (Too many levels of symbolic links)
Presumably I can find where that is linked from and link to null from
there.  I will have to google how to do that.

Colin

OTOH, you could put /var/log in a tmpfs if you don't care
> about any logs and if RAM is not too limited for your application. That
> would save even more write operations to the SD card.
>
>
> Nils
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>



-- 
gplus.to/clanlaw




More information about the ubuntu-users mailing list