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 <[email protected]> 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)
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to