monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: monit logfile and logrotate


From: Nick Upson
Subject: Re: monit logfile and logrotate
Date: Wed, 20 Jul 2011 16:21:38 +0100

Hi,

the copytruncate should take care of that, it copies the file and then truncates it. except with monit when the truncate doesn't work

On 20 July 2011 13:41, Martin Pala <address@hidden> wrote:
Hi,

you need to do "monit reload" in the logrotate's postrotate section to open the new logfile, otherwise it continues to write to the same file.


Regards,
Martin


On Jul 20, 2011, at 10:54 AM, Nick Upson wrote:

> I currently have a logrotate config for the monit logfile that just does a copytruncate, but it seems to only do the copy, the logfile continues to grow.
>
> Using 5.2.5-1, does anyone have a working logrotate config they can share?
>
>
> --
> Nick Upson (01799 533252)
>
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general


--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general



--
Nick Upson (01799 533252)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]