Quantcast
Channel: Planet Plone - Where Developers And Integrators Write
Viewing all articles
Browse latest Browse all 3535

Mark van Lent: Logrotate Plone instance

$
0
0

While reading Plone 3 Intranets by Víctor Fernández de Alba, I discovered the “logreopen” command.

This means that this snippet in the logrotate configuration file:

${buildout:directory}/var/log/instance.log {
postrotate
/bin/kill -USR2 $(cat ${buildout:directory}/var/instance.pid)
endscript
}

Can be replaced by this:

${buildout:directory}/var/log/instance.log {
postrotate
${buildout:directory}/bin/instance logreopen
endscript
}

I don't know how well-known this command is, but at least for me it was a new one.

I will write a review of the book soon, but I already wanted to share this with you. For those of you that cannot wait, check out the sample chapter from the Packt Publishing website.


Viewing all articles
Browse latest Browse all 3535

Trending Articles