/home/pi/System_maintenance/1_limit size of log file run.log.txt ********************* 10Apr2017 13:10 /home/pi/.cache/lxsession/LXDE-pi/run.log -> 1.1 Gb!! https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=29288 Raspbian: limit size of log files? by jojopi » Tue Jan 15, 2013 4:33 pm If you mean the foundation's recommended images of raspbian wheezy, then logrotate runs at about 06:25 daily. syslog is rotated daily for a week, and most other logs weekly for four weeks. If your Pi is never up at that time of day, then "sudo apt-get install anacron". Now logrotate should also run at boot time if it is overdue. If your Pi is never up for more than an hour at a time and has no network connection, then the time will be essentially static. Otherwise, I do not think the lack of RTC has much impact. Even with no rotation at all, to fill a 4GB card after a few weeks you must be seeing orders of magnitude more logging than I am. I do not think rebooting a few times a day would make such a big difference. There probably are usages that would cause much higher logging, but I would expect there to be an obvious pattern to the excess logs in that case. by terrytheandroid » Wed Jan 16, 2013 3:51 pm Hi, if you want to know if logrotate is installed use dpkg --list logrotate If it's not installed you'll get a message something like "dpkg-query: no packages found matching logrotate" >> Howell - mine is installed >> I'll just delete the log file /home/pi/.cache/lxsession/LXDE-pi/run.log >> then leave it for now and check later to see if it builds up again # enddoc