[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: monit logfile and logrotate
From: |
Eric Pailleau |
Subject: |
Re: monit logfile and logrotate |
Date: |
Wed, 20 Jul 2011 17:39:39 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:5.0) Gecko/20110620 Thunderbird/5.0b2 |
Le 20/07/2011 14:41, Martin Pala a écrit :
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.
That is right.
Logging uses inodes, not filenames. So creating a new file with old name
creates a new inode, but
logging still go to same inode : the old file with a new name ...
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
--
Salutations - Best regards - mit freundlichen Grüssen
----------------- address@hidden ------------------------------------
fr - Merci d'utiliser cette addresse pour le support ou question technique
en - Please use this address for any support or technical question
----------------- https://support.numlog.fr --------------------------------
fr - Privilégier la gestion de ticket d'incident (Clients NUMLOG)
en - Prefere our trouble ticket application (NUMLOG's customers)