<div dir="ltr">What does your /etc/logrotate.conf look like? One option for logrotate is to only rotate if the logs have reached a certain size.<div><br></div><div>-Jon </div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Thu, Sep 19, 2013 at 7:34 AM, Anna <span dir="ltr"><<a href="mailto:aschoolf@gmail.com" target="_blank">aschoolf@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div class="im">On Wed, Sep 18, 2013 at 11:50 PM, James Cameron <span dir="ltr"><<a href="mailto:quozl@laptop.org" target="_blank">quozl@laptop.org</a>></span> wrote:<br></div><div class="gmail_extra">
<div class="gmail_quote"><div class="im">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Things to check:<br>
<br>
- is crond running? (it isn't present by default on OLPC OS)<br></blockquote><div><br></div></div><div><div>[root@schoolserver] ~ >systemctl status crond.service</div><div>crond.service - Command Scheduler</div><div>
Loaded: loaded (/usr/lib/systemd/system/crond.service; enabled)</div>
<div> Active: active (running) since Wed 2013-09-11 00:20:49 GMT; 1 weeks 1 days ago</div><div> Main PID: 513 (crond)</div><div> CGroup: name=systemd:/system/crond.service</div><div> └─513 /usr/sbin/crond -n</div>
<div><br></div><div>Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.</div></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
- is logrotate installed?<br></blockquote><div> </div><div><div>[root@schoolserver] ~ >whereis logrotate</div><div>logrotate: /sbin/logrotate /usr/sbin/logrotate /etc/logrotate.conf /etc/logrotate.d</div></div><div><br>
</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
- is /etc/cron.daily/logrotate present?<br></blockquote><div> </div><div><div>[root@schoolserver] ~ >cat /etc/cron.daily/logrotate </div><div>#!/bin/sh</div><div><br></div><div>/usr/sbin/logrotate /etc/logrotate.conf</div>
<div>EXITVALUE=$?</div><div>if [ $EXITVALUE != 0 ]; then</div><div> /usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]"</div><div>fi</div><div>exit 0</div></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
- is /etc/logrotate.d/syslog present?<br></blockquote><div> </div><div><div>[root@schoolserver] ~ >cat /etc/logrotate.d/syslog </div><div>/var/log/cron</div><div>/var/log/maillog</div><div>/var/log/messages</div><div>
/var/log/secure</div>
<div>/var/log/spooler</div><div>{</div><div> sharedscripts</div><div> postrotate</div><div><span style="white-space:pre-wrap"> </span>/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true</div>
<div> endscript</div><div>}</div></div><div><div class="h5"><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div><div><br>
On Wed, Sep 18, 2013 at 11:10:39PM -0500, Anna wrote:<br>
> Oops, forgot to copy server-devel<br>
><br>
><br>
> On Wed, Sep 18, 2013 at 10:55 PM, Anna <<a href="mailto:aschoolf@gmail.com" target="_blank">aschoolf@gmail.com</a>> wrote:<br>
><br>
> Was weekly log rotation supposed to be a thing? I thought we talked about<br>
> it.<br>
><br>
> Here's the XSCE on an XO 1.5, running like a champ for this uptime on<br>
> xs-config-0.8.4.260.g5388399-1.noarch<br>
><br>
> [root@schoolserver] ~ >uptime<br>
> 03:43:11 up 8 days, 3:22, 2 users, load average: 0.14, 0.24, 0.27<br>
> [root@schoolserver] ~ >ls /var/log<br>
> btmp httpd monit.log ppp <br>
> spooler user.log yum.log<br>
> cron lastlog moodle puppet <br>
> squid wpa_supplicant.log<br>
> dansguardian maillog moodle-instupg.log<br>
> pwr-SHC0050085F-130911_002052.csv sugar-stats wtmp<br>
> ejabberd messages powerd.trace secure <br>
> tallylog xs-setup.log<br>
><br>
> I've poked into dirs in /var/log and don't see any log rotation. But<br>
> secure should be rotating, if log rotation is working.<br>
><br>
> Anna<br>
><br>
><br>
<br>
</div></div>> _______________________________________________<br>
> Server-devel mailing list<br>
> <a href="mailto:Server-devel@lists.laptop.org" target="_blank">Server-devel@lists.laptop.org</a><br>
> <a href="http://lists.laptop.org/listinfo/server-devel" target="_blank">http://lists.laptop.org/listinfo/server-devel</a><br>
<span><font color="#888888"><br>
<br>
--<br>
James Cameron<br>
<a href="http://quozl.linux.org.au/" target="_blank">http://quozl.linux.org.au/</a><br>
</font></span></blockquote></div></div></div><br></div></div>
</blockquote></div><br></div>