Hiya folks, I don't know why this never occurred to me before, but the ZEO server doesn't seem to have an equivalent to Zope's log rotation signal handling. From the Zope Book: """ The common idiom after rotating Zope log files is: kill -USR2 `cat $ZOPE_HOME/var/Z2.pid` """ What do people do with their ZEO server log? there's no pid file and it doesn't respond to SIGUSR2 AFAIK... -- Paul Winkler http://www.slinkp.com
Doh! Answering my own question with a tiny bit of googling: http://www.google.com/search?hl=en&q=ZEO+log+rotation&btnG=Google+Search Sorry for the list noise. -PW On Thu, Dec 30, 2004 at 10:49:41AM -0500, Paul Winkler wrote:
Hiya folks,
I don't know why this never occurred to me before, but the ZEO server doesn't seem to have an equivalent to Zope's log rotation signal handling. From the Zope Book:
""" The common idiom after rotating Zope log files is:
kill -USR2 `cat $ZOPE_HOME/var/Z2.pid` """
What do people do with their ZEO server log? there's no pid file and it doesn't respond to SIGUSR2 AFAIK...
-- Paul Winkler http://www.slinkp.com
On Thu, Dec 30, 2004 at 10:52:50AM -0500, Paul Winkler wrote:
Doh! Answering my own question with a tiny bit of googling: http://www.google.com/search?hl=en&q=ZEO+log+rotation&btnG=Google+Search
Sorry for the list noise.
Double-drat. bin/zeoctl logreopen does NOT work if zeo is run in the foreground (either via runzeo or zeoctl fg). That seems like a bug to me. Anyone have a workaround? -- Paul Winkler http://www.slinkp.com
Am Donnerstag, den 30.12.2004, 11:04 -0500 schrieb Paul Winkler:
On Thu, Dec 30, 2004 at 10:52:50AM -0500, Paul Winkler wrote:
Doh! Answering my own question with a tiny bit of googling: http://www.google.com/search?hl=en&q=ZEO+log+rotation&btnG=Google+Search
Sorry for the list noise.
Double-drat. bin/zeoctl logreopen does NOT work if zeo is run in the foreground (either via runzeo or zeoctl fg). That seems like a bug to me. Anyone have a workaround?
Otoh, why running it in the foreground if you are not currently debugging it? Btw. where in the above Google result page did you find your solution? Regards Tino
On Thu, Dec 30, 2004 at 05:30:16PM +0100, Tino Wildenhain wrote:
Am Donnerstag, den 30.12.2004, 11:04 -0500 schrieb Paul Winkler:
On Thu, Dec 30, 2004 at 10:52:50AM -0500, Paul Winkler wrote:
Doh! Answering my own question with a tiny bit of googling: http://www.google.com/search?hl=en&q=ZEO+log+rotation&btnG=Google+Search
Sorry for the list noise.
Double-drat. bin/zeoctl logreopen does NOT work if zeo is run in the foreground (either via runzeo or zeoctl fg). That seems like a bug to me. Anyone have a workaround?
Otoh, why running it in the foreground if you are not currently debugging it?
Because we use daemontools to manage all our long-running processes. Daemontools supervises a process by running it in the foreground.
Btw. where in the above Google result page did you find your solution?
http://www.google.com/search?hl=en&q=ZEO+log+rotation&btnG=Google+Search Fifth one down is this: http://www.plope.com/Books/2_7Edition/ZEO.stx and in the table of contents one finds this: http://www.plope.com/Books/2_7Edition/ZEO.stx#2-33 -- Paul Winkler http://www.slinkp.com
Paul Winkler wrote at 2004-12-30 10:49 -0500:
... The common idiom after rotating Zope log files is:
kill -USR2 `cat $ZOPE_HOME/var/Z2.pid` """
What do people do with their ZEO server log?
I wrote a small module "Rotator". "Rotator" instances behave like a file but in fact open (and write) a new disk file at each day boundary. I extended Zope's logging machinery by a new "RotatedFile" handler. We use this for all logging -- and forget about special ways to rotate logs and mystic signals... -- Dieter
participants (3)
-
Dieter Maurer -
Paul Winkler -
Tino Wildenhain