<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[iRedMail — logrotate does not seem to work via cron]]></title>
	<link rel="self" href="http://www.iredmail.org/forum/feed-atom-topic4292.xml" />
	<updated>2012-12-18T10:05:17Z</updated>
	<generator>PunBB</generator>
	<id>http://www.iredmail.org/forum/topic4292-logrotate-does-not-seem-to-work-via-cron.html</id>
		<entry>
			<title type="html"><![CDATA[Re: logrotate does not seem to work via cron]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post19603.html#p19603" />
			<content type="html"><![CDATA[<p>No idea yet, sorry. <img src="http://www.iredmail.org/forum/img/smilies/sad.png" width="15" height="15" alt="sad" /><br />Please try to perform some more debugs yourself to figure it out.</p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2012-12-18T10:05:17Z</updated>
			<id>http://www.iredmail.org/forum/post19603.html#p19603</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: logrotate does not seem to work via cron]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post19599.html#p19599" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>ZhangHuangbin wrote:</cite><blockquote><p>Do you have service &quot;cron&quot; running?</p></blockquote></div><p>yes:</p><div class="codebox"><pre><code>root@www:~# ps ax | grep cron
 1400 ?        Ss     1:22 /usr/sbin/cron
30642 pts/0    R+     0:00 grep cron</code></pre></div><p>And other cron jobs run ok.</p>]]></content>
			<author>
				<name><![CDATA[okoetter]]></name>
				<uri>http://www.iredmail.org/forum/user31169.html</uri>
			</author>
			<updated>2012-12-18T09:40:58Z</updated>
			<id>http://www.iredmail.org/forum/post19599.html#p19599</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: logrotate does not seem to work via cron]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post19592.html#p19592" />
			<content type="html"><![CDATA[<p>Do you have service &quot;cron&quot; running?</p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2012-12-18T07:35:33Z</updated>
			<id>http://www.iredmail.org/forum/post19592.html#p19592</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[logrotate does not seem to work via cron]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post19579.html#p19579" />
			<content type="html"><![CDATA[<p>==== Required information ====<br />- iRedMail version: <br />- Store mail accounts in which backend (LDAP/MySQL/PGSQL): <br />- Linux/BSD distribution name and version: <br />- Related log if you&#039;re reporting an issue: <br />==== ==== Required information ====<br />- iRedMail version: 0.8.3<br />- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL<br />- Linux/BSD distribution name and version: Debian Squeeze<br />- Related log if you&#039;re reporting an issue: see below<br />==== </p><p>Hi Zhang,</p><p>I use Debian Squeeze and logrotate does not seem to be called via cron. My log files grew very big.<br />Today I did some research:</p><p>- in /etc/crontab it says <br />&nbsp; 16 0 * * * root test -x /usr/sbin/anacron || ( cd / &amp;&amp; run-parts --report /etc/cron.daily )<br />- in /etc/cron.daily/logrotate it says:<br />&nbsp; #!/bin/sh<br />&nbsp; test -x /usr/sbin/logrotate || exit 0<br />&nbsp; /usr/sbin/logrotate /etc/logrotate.conf<br />- in syslog I see <br />&nbsp; Dec 17 01:16:01 www /USR/SBIN/CRON[13319]: (root) CMD (test -x /usr/sbin/anacron || ( cd / &amp;&amp; run-parts --report /etc/cron.daily ))<br />&nbsp; No more warnings or error messages then concerning logrotate.</p><p>So I see in syslog that anacron tries to run scripts in cron.daily, but logs are NOT rotated, they still grow.</p><p>If manually run &quot;/usr/sbin/logrotate /etc/logrotate.conf&quot; all is fine and all logs are rotated.<br />Any ideas?</p><p>Best regards,<br />Oliver</p>]]></content>
			<author>
				<name><![CDATA[okoetter]]></name>
				<uri>http://www.iredmail.org/forum/user31169.html</uri>
			</author>
			<updated>2012-12-17T12:36:39Z</updated>
			<id>http://www.iredmail.org/forum/post19579.html#p19579</id>
		</entry>
</feed>
