<div dir="ltr">On Thu, Sep 19, 2013 at 12:48 AM, Jon Nettleton <span dir="ltr"><<a href="mailto:jon.nettleton@gmail.com" target="_blank">jon.nettleton@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<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 dir="ltr">Does it work if you run <span style="font-family:arial,sans-serif;font-size:13px">/etc/cron.daily/logrotate by hand as root?</span></div>
</blockquote><div><br></div><div>Nope:</div><div><br></div><div><div>[root@schoolserver] ~ >cd /etc/cron.daily/</div><div>[root@schoolserver] cron.daily >./logrotate </div><div>error: failed to open config file *: No such file or directory</div>
<div>error: found error in file *, skipping</div></div><div><br></div><div>So this is weird to see this in there:</div><div><div>[root@schoolserver] ~ >ls /etc/cron.daily/</div><div>etckeeper logrotate man-db.cron mlocate.cron</div>
</div><div><br></div><div><div>[root@schoolserver] cron.daily >cat 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>[root@schoolserver] cron.daily >whereis logger</div><div>logger: /bin/logger /usr/bin/logger /usr/share/man/man1p/logger.1p.gz</div>
</div><div><br></div><div>And there's nothing here:</div><div><br></div><div><div>[root@schoolserver] ~ >ls /etc/cron.weekly/</div><div>[root@schoolserver] ~ ></div></div><div><br></div><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 class=""><div class="h5"><div class="gmail_extra"><br>
<br><div class="gmail_quote">On Thu, Sep 19, 2013 at 7:40 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:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>On Thu, Sep 19, 2013 at 12:38 AM, Jon Nettleton <span dir="ltr"><<a href="mailto:jon.nettleton@gmail.com" target="_blank">jon.nettleton@gmail.com</a>></span> wrote:<br>
</div><div class="gmail_extra"><div class="gmail_quote"><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 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.<span><font color="#888888"><div>
<br></div></font></span></div></blockquote><div><br></div></div><div>My understanding was it was supposed to rotate weekly no matter what.</div><div><br></div><div>[root@schoolserver] ~ >cat /etc/logrotate.conf </div>
<div># see "man logrotate" for details</div>
<div># rotate log files weekly</div><div>weekly</div><div><br></div><div># keep 4 weeks worth of backlogs</div><div>rotate 4</div><div><br></div><div># create new (empty) log files after rotating old ones</div><div>create</div>
<div><br></div><div># use date as a suffix of the rotated file</div><div>dateext</div><div><br></div><div># uncomment this if you want your log files compressed</div><div>#compress</div><div><br></div><div># RPM packages drop log rotation information into this directory</div>
<div>include /etc/logrotate.d</div><div><br></div><div># no packages own wtmp and btmp -- we'll rotate them here</div><div>/var/log/wtmp {</div><div> monthly</div><div> create 0664 root utmp</div><div><span style="white-space:pre-wrap"> </span>minsize 1M</div>
<div> rotate 1</div><div>}</div><div><br></div><div>/var/log/btmp {</div><div> missingok</div><div> monthly</div><div> create 0600 root utmp</div><div> rotate 1</div><div>}</div><div><br></div><div># system-specific logs may be also be configured here.</div>
<div> </div></div></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div></div>