[asterisk-users] Asterisk Log rotate not working
Dmitry
mbike2000ru at yahoo.com
Thu May 23 03:10:17 CDT 2013
You can check whether logrotate sees/understands the asterisk's file in /etc/logrotate.d volume by looking through
/var/log/logstatus
You should see names of the files you plan to rotate
Actually you should do
logrotate -s /var/log/logstatus /etc/logrotate.conf to see these files
hope this helps
Dmitry Pavlenko
________________________________
From: Tzafrir Cohen <tzafrir.cohen at xorcom.com>
To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users at lists.digium.com>
Sent: Thursday, May 23, 2013 11:25 AM
Subject: Re: [asterisk-users] Asterisk Log rotate not working
On Wed, May 22, 2013 at 02:54:46PM -0400, Ahmed Munir wrote:
> Jim,
>
> Cron and Logrotate already installed in my machine and already configured
> as the steps you enlisted. But still logrotate is not running.
How can you tell that the logrotate cron job was run?
At what time it was configured to run? Did you see its output in the
logs?
And please, do make some minimal effort to RTFM and answer questions on
your own. Some tools for your disposal:
rpm -ql logrotate | grep cron
grep -i crom /var/log/messages
Cron jobs which have failed and/or had an output send a message to the
user who ran them (root, in your case). Is there a "sendmail" (sendmail,
postfix, whatever) running on the system? If so, where does root's mail
go to? Read it.
--
Tzafrir Cohen
icq#16849755 jabber:tzafrir.cohen at xorcom.com
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130523/93c955bd/attachment.htm>
More information about the asterisk-users
mailing list