Le mardi 15 mars 2011 à 10:02 +0100, Alessio Fattorini a écrit : > Il 14/03/2011 13:58, Daniel Berteaud ha scritto: > > and adding the copytruncate option in the logrotate > > config. > > Thanks folks! > I'll remove restart option. > Why the option copytruncate?
Copytruncate is needed if you don't restart the daemon. Instead of moving the old log file and creating a new, it'll just copy the old log, and truncate it, so the daemon doesn't need any reload to continue writing data to the new file (because it's the same as the old one). Regards, Daniel > > > > -- > Alessio Fattorini ([email protected]) > > nethesis srl - Via degli Olmi 16/4 - 61100 Pesaro (PU) > tel. +39 0721 405516 - fax +39 0721 268147 > www.nethesis.it - [email protected] -- Daniel Berteaud FIREWALL-SERVICES SARL. Société de Services en Logiciels Libres Technopôle Montesquieu 33650 MARTILLAC Tel : 05 56 64 15 32 Fax : 05 56 64 15 32 Mail: [email protected] Web : http://www.firewall-services.com -- [email protected] https://inverse.ca/sogo/lists
